

def _group_add(group_resource):
    '\n    :param group_resource: optional filename for the group resource\n    :type group_resource: str\n    :returns: process return code\n    :rtype: int\n    '
    group_resource = _get_resource(group_resource)
    client = marathon.create_client()
    group_id = client.normalize_app_id(group_resource['id'])
    try:
        client.get_group(group_id)
    except DCOSException as e:
        logger.exception(group_id)
    else:
        raise DCOSException("Group '{}' already exists".format(group_id))
    client.create_group(group_resource)
    return 0

dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/marathon/main.py _group_add/VarMisuse@62/147 `e`->`group_id`