List names instead of UUIDs
This commit is contained in:
		| @@ -503,6 +503,7 @@ def get_list(zk_conn, node, limit, raw): | ||||
|  | ||||
|     full_vm_list = zkhandler.listchildren(zk_conn, '/domains') | ||||
|     vm_list = [] | ||||
|     vm_list_names = [] | ||||
|     vm_list_output = [] | ||||
|  | ||||
|     vm_node = {} | ||||
| @@ -520,6 +521,7 @@ def get_list(zk_conn, node, limit, raw): | ||||
|  | ||||
|         # Check we don't match the limit | ||||
|         name = zkhandler.readdata(zk_conn, '/domains/{}'.format(vm)) | ||||
|         vm_list_names.append(name) | ||||
|         vm_node[vm] = zkhandler.readdata(zk_conn, '/domains/{}/node'.format(vm)) | ||||
|         if limit != None: | ||||
|             try: | ||||
| @@ -553,7 +555,7 @@ def get_list(zk_conn, node, limit, raw): | ||||
|                     vm_list.append(vm) | ||||
|  | ||||
|     if raw: | ||||
|         click.echo('\n'.join(vm_list)) | ||||
|         click.echo('\n'.join(vm_list_names)) | ||||
|         return True, '' | ||||
|  | ||||
|     # Gather information for printing | ||||
|   | ||||
		Reference in New Issue
	
	Block a user