def _group_add(group_resource):

    group_resource = _get_resource(group_resource)

    client = marathon.create_client()

    # Check that the group doesn't exist
    group_id = client.normalize_app_id(group_resource['id'])

    try:
        client.get_group(group_id)
    except DCOSException as e:
        logger.exception(e)
    else:
        raise DCOSException("Group '{}' already exists".format(group_id))

    client.create_group(group_resource)

    return 0
Touch a file
dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/marathon/main.py/_group_add--crossover with--dataset/ETHPy150Open jakev/dtf/src/dtf/core/cmds/init.py/touch