Use infoextended for fallback case also
This commit is contained in:
parent
6ac9d2fb1e
commit
63a78a537e
1 changed files with 7 additions and 1 deletions
|
@ -212,7 +212,13 @@ class OpenNebulaManager():
|
||||||
'Could not connect via client, using oneadmin instead')
|
'Could not connect via client, using oneadmin instead')
|
||||||
try:
|
try:
|
||||||
vm_pool = oca.VirtualMachinePool(self.oneadmin_client)
|
vm_pool = oca.VirtualMachinePool(self.oneadmin_client)
|
||||||
vm_pool.info(filter=-2)
|
if infoextended:
|
||||||
|
vm_pool.infoextended(
|
||||||
|
filter=-1, # User's resources and any of his groups
|
||||||
|
vm_state=-1 # Look for VMs in any state, except DONE
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
vm_pool.info(filter=-2)
|
||||||
return vm_pool
|
return vm_pool
|
||||||
except:
|
except:
|
||||||
raise ConnectionRefusedError
|
raise ConnectionRefusedError
|
||||||
|
|
Loading…
Reference in a new issue