mirror of
https://github.com/retspen/webvirtcloud
synced 2026-03-22 10:34:49 +00:00
add host status checking for statistic request
This commit is contained in:
parent
94d6da598a
commit
3f09104980
2 changed files with 24 additions and 22 deletions
|
|
@ -148,7 +148,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,
|
||||
compute.login,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue