def get_vmconfig(vmid, node=None, node_type='openvz'):
 if (node is None):
  for (host_name, host_details) in six.iteritems(avail_locations()):
   for item in query('get', 'nodes/{0}/{1}'.format(host_name, node_type)):
    if (item['vmid'] == vmid):
     node = host_name
 data = query('get', 'nodes/{0}/{1}/{2}/config'.format(node, node_type, vmid))
 return data

def get_vmconfig ( vmid , node = None , node_type = 'openvz' ) : if ( node is None ) : for ( host_name , host_details ) in six . iteritems ( avail_locations ( ) ) : for item in query ( 'get' , 'nodes/{0}/{1}' . format ( host_name , node_type ) ) : if ( item [ 'vmid' ] == vmid ) : node = host_name data = query ( 'get' , 'nodes/{0}/{1}/{2}/config' . format ( node , node_type , vmid ) ) return data
get vm configuration .