Change vm_pool infoextended to retrieve VMs in any state except DONE

This commit is contained in:
PCoder 2019-04-11 01:39:06 +02:00
commit 5f8cc2199b
2 changed files with 3 additions and 1 deletions

View file

@ -179,7 +179,7 @@ class OpenNebulaManager():
vm_pool.infoextended(
filter_key_value_str='ID={vm_id}'.format(vm_id=vm_id) if
vm_id is not None else '',
vm_state=3 # look for VMs only in ACTIVE state
vm_state=-1 # Look for VMs in any state, except DONE
)
else:
vm_pool.info()