def get_nm_group_id(nm_host, name, groups=None, dry_run=False):
    '\n    Get the group ID of a group specified by name\n\n    :param nm_host: NodeMeister hostname or IP\n    :type nm_host: string\n    :param name: name of the new group\n    :type name: string\n    :param groups: dict of groups as returned by get_group_names()\n    :type groups: dict\n    :returns: int ID of the group or False on failure\n    :rtype: int or False\n    '
    if dry_run:
        return 0
    if (groups is None):
        groups = get_group_names(nm_host)
    for n in groups:
        if (groups[n] == name):
            return n
    return False
Get the group ID of a group specified by name

:param nm_host: NodeMeister hostname or IP
:type nm_host: string
:param name: name of the new group
:type name: string
:param groups: dict of groups as returned by get_group_names()
:type groups: dict
:returns: int ID of the group or False on failure
:rtype: int or False
def get_nm_group_id(nm_host, name, groups=None, dry_run=False):
    '\n    Get the group ID of a group specified by name\n\n    :param nm_host: NodeMeister hostname or IP\n    :type nm_host: string\n    :param name: name of the new group\n    :type name: string\n    :param groups: dict of groups as returned by get_group_names()\n    :type groups: dict\n    :returns: int ID of the group or False on failure\n    :rtype: int or False\n    '
    if dry_run:
        return 0
    if (groups is None):
        groups = get_group_names(nm_host)
    for n in groups:
        if (groups[n] == name):
            return n
    return False