diff --git a/opennebula/get-vms.py b/opennebula/get-vms.py index 5839922..e15e1ee 100644 --- a/opennebula/get-vms.py +++ b/opennebula/get-vms.py @@ -1,5 +1,7 @@ import json import os +import argparse +import pprint from enum import IntEnum from xmlrpc.client import ServerProxy as RPCClient @@ -90,6 +92,7 @@ def main(): ) if success: vms = json.loads(json.dumps(parse(response)))['VM_POOL']['VM'] + pprint.pprint(vms) for i, vm in enumerate(vms): vm_id = vm['ID'] print(f"id = {vm_id}")