1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

add host status checking for statistic request

This commit is contained in:
catborise 2020-05-19 00:38:20 +03:00 committed by catborise
parent 0c72ccd066
commit 566a9d446a
2 changed files with 24 additions and 22 deletions

View file

@ -86,7 +86,8 @@ def overview(request, compute_id):
error_messages = []
compute = get_object_or_404(Compute, pk=compute_id)
status = 'true' if connection_manager.host_is_up(compute.type, compute.hostname) else 'false'
try:
conn = wvmHostDetails(
compute.hostname,