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,6 +212,12 @@ class OpenNebulaManager():
|
|||
'Could not connect via client, using oneadmin instead')
|
||||
try:
|
||||
vm_pool = oca.VirtualMachinePool(self.oneadmin_client)
|
||||
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
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue