Skip to content
Snippets Groups Projects
Commit 311f633a authored by mvrp21's avatar mvrp21
Browse files

fix: VM maxmem now is in MB


Signed-off-by: default avatarMarcus V. <mvrp21@inf.ufpr.br>
parent 5ea58976
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ def extract_vm_data(cluster_name, node_name, vm_status): ...@@ -99,7 +99,7 @@ def extract_vm_data(cluster_name, node_name, vm_status):
'device': {'name': node_name}, 'device': {'name': node_name},
'cluster': {'name': cluster_name}, 'cluster': {'name': cluster_name},
'vcpus': vm_status['cpus'], 'vcpus': vm_status['cpus'],
'memory': vm_status['maxmem'] / 2**10, 'memory': vm_status['maxmem'] / 2**20,
'tags': [{'name': tag} for tag in vm_config['tags'].split(';')], 'tags': [{'name': tag} for tag in vm_config['tags'].split(';')],
'custom_fields': {'vmid': vm_status['vmid']} 'custom_fields': {'vmid': vm_status['vmid']}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment