Add translation of domain UUIDs to names
Allows frontends to better handle the domain list gracefully, as humans don't care about the UUIDs.
This commit is contained in:
parent
be092756a9
commit
89bfbe1fd8
@ -1212,3 +1212,7 @@ def get_detect_device(detect_string):
|
|||||||
return device
|
return device
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def translate_domains_to_names(zkhandler, domain_list):
|
||||||
|
return list(zkhandler.read_many([("domain.name", d) for d in domain_list]))
|
||||||
|
@ -142,7 +142,9 @@ def getNodeInformation(zkhandler, node_name):
|
|||||||
node_mem_free = int(_node_mem_free)
|
node_mem_free = int(_node_mem_free)
|
||||||
node_load = float(_node_load)
|
node_load = float(_node_load)
|
||||||
node_domains_count = int(_node_domains_count)
|
node_domains_count = int(_node_domains_count)
|
||||||
node_running_domains = _node_running_domains.split()
|
node_running_domains = common.translate_domains_to_names(
|
||||||
|
zkhandler, _node_running_domains.split()
|
||||||
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
node_health = int(_node_health)
|
node_health = int(_node_health)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user