MCPcopy
hub / github.com/retspen/webvirtcloud / get_hosts_status

Function get_hosts_status

computes/views.py:27–41  ·  view source on GitHub ↗

Function return all hosts all vds on host

(computes)

Source from the content-addressed store, hash-verified

25 return HttpResponseRedirect(reverse('index'))
26
27 def get_hosts_status(computes):
28 """
29 Function return all hosts all vds on host
30 """
31 compute_data = []
32 for compute in computes:
33 compute_data.append({'id': compute.id,
34 'name': compute.name,
35 'hostname': compute.hostname,
36 'status': connection_manager.host_is_up(compute.type, compute.hostname),
37 'type': compute.type,
38 'login': compute.login,
39 'password': compute.password
40 })
41 return compute_data
42
43 error_messages = []
44 computes = Compute.objects.filter()

Callers 1

computesFunction · 0.85

Calls 1

host_is_upMethod · 0.80

Tested by

no test coverage detected