Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate the type for Tags #2270

Merged
merged 1 commit into from
Sep 29, 2024
Merged

Validate the type for Tags #2270

merged 1 commit into from
Sep 29, 2024

Conversation

markpeek
Copy link
Member

Prior to this change Tags (which is a subclass of AWSHelperFn) would not do validation of the expected type and it prevented validation of Json style Tags needing a dict.

Fixes #2268

Prior to this change Tags (which is a subclass of AWSHelperFn)
would not do validation of the expected type and it prevented
validation of Json style Tags needing a dict.
Copy link

@gautaz gautaz left a comment

Choose a reason for hiding this comment

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

I have tested the branch with a JobDefinition (my original test case) with both dict and Tags, everything seems fine and working.
The test passes with dict and fails on Tags with error JobDefinition.Tags is <class 'troposphere.Tags'>, expected <class 'dict'> which is exactly what I expected.
Thank you!

@markpeek markpeek merged commit 625bd24 into main Sep 29, 2024
6 checks passed
@markpeek markpeek deleted the markpeek-issue2268 branch September 29, 2024 19:57
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.

Tags types seems a bit confusing for newcomers
2 participants