def get_node_names(nm_host):
    '\n    Return a dict of nodes in the NM instance,\n    id => hostname\n\n    :param nm_host: NodeMeister hostname/IP\n    :type nm_host: string\n    :rtype: dict\n    :returns: NM nodes, dict of the form {id<int>: hostname<string>}\n    '
    j = get_json(('http://%s/enc/nodes/' % nm_host))
    names = {}
    for n in j:
        names[n['id']] = n['hostname']
    return names
Return a dict of nodes in the NM instance,
id => hostname

:param nm_host: NodeMeister hostname/IP
:type nm_host: string
:rtype: dict
:returns: NM nodes, dict of the form {id<int>: hostname<string>}
def get_node_names(nm_host):
    '\n    Return a dict of nodes in the NM instance,\n    id => hostname\n\n    :param nm_host: NodeMeister hostname/IP\n    :type nm_host: string\n    :rtype: dict\n    :returns: NM nodes, dict of the form {id<int>: hostname<string>}\n    '
    j = get_json(('http://%s/enc/nodes/' % nm_host))
    names = {}
    for n in j:
        names[n['id']] = n['hostname']
    return names