[opennebula] add debug to get-vms
This commit is contained in:
parent
a11b43df4f
commit
e29b29eab5
1 changed files with 3 additions and 0 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue