diff --git a/mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/lambda_function.py b/mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/lambda_function.py index 88f7f0fa..b05059e3 100644 --- a/mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/lambda_function.py +++ b/mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/lambda_function.py @@ -145,6 +145,8 @@ def lambda_handler(event, context): group_id = os.environ["GroupId"] if group_id in ['None', 'none']: group_id = None + else: + group_id = gl.groups.list(search=group_name)[0].id # Create the GitLab Project try: @@ -230,4 +232,4 @@ def lambda_handler(event, context): return { 'message' : "GitLab seedcode checkin successfully completed" - } \ No newline at end of file + }