[tools]Update get_info.py for uid

This commit is contained in:
kjg 2020-04-08 07:18:56 +02:00
parent 873eca6467
commit ad8b7b2c6d

View file

@ -69,7 +69,7 @@ def main():
if success: if success:
vms = json.loads(json.dumps(parse(response)))['VM_POOL']['VM'] vms = json.loads(json.dumps(parse(response)))['VM_POOL']['VM']
for entry in vm_list.entries: for entry in vm_list.entries:
temp_uname = entry.mail temp_uname = entry.uid
for i, vm in enumerate(vms): for i, vm in enumerate(vms):
vm_user = vm['UNAME'] vm_user = vm['UNAME']
vm_id = vm['ID'] vm_id = vm['ID']