Skip to content

Conversation

Saggi432
Copy link
Contributor

@Saggi432 Saggi432 commented Oct 7, 2021

Issue #, if available:

Description of changes:

Fixes the below error.

[ERROR] IndexError: list index out of rangeTraceback (most recent call last):  File "/var/task/lambda_function.py", line 149, in lambda_handler    group_id = gl.groups.list(search='my-group')[0].id [ERROR] IndexError: list index out of range Traceback (most recent call last):   File "/var/task/lambda_function.py", line 149, in lambda_handler     group_id = gl.groups.list(search='my-group')[0].id

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

group_id = None
else:
group_id = gl.groups.list(search='my-group')[0].id
group_id = gl.groups.list(search='group_name')[0].id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, group_name should not be in quotes though since it's the variable name. Can you update that with a new commit? I'll merge then.

@kirit93 kirit93 merged commit e7702e3 into aws-samples:main Oct 21, 2021
acere pushed a commit to apac-ml-tfc/sagemaker-custom-project-templates that referenced this pull request Jun 13, 2024
…ment-to-cicd-constructs

Feature/improvement to cicd constructs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants