Commit 73baafcb authored by Benziane Chakib's avatar Benziane Chakib

Bug fix in list_vm handler method

parent a726abb9
......@@ -127,7 +127,7 @@ class NodeHandler(RpcHandler):
vms_info = []
vm_info = {}
tags = VM_TAG_MAP.keys() if tags is None else tags
tags = [] if tags is None else tags
logging.debug('list_vm: processing tags %s' % tags)
# ensure that vm name is always returned
if not tags.__contains__('vm'):
......@@ -168,7 +168,7 @@ class NodeHandler(RpcHandler):
if vm_names is None:
#fetch all vm names in hypervisor
vm_names = [vm.get_name() for vm in self.hv_handle._vm_list]
vm_names = gen_vm_names(self.hv_handle)
logging.debug('stop_vm: stopping vms %s' % vm_names)
for vm in vm_names:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment