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

Fix target type validation #1794

Merged

Conversation

alexeyts
Copy link
Contributor

@alexeyts alexeyts commented Oct 2, 2020

Allow TargetType to be Ref items, such as Ref('AWS::NoValue'), as well as parameters.

This will not allow using None, but one would argue Ref('AWS::NoValue') would be a better choice.

Also today, when trying to use None (at least in python 2.7), you would get the error:
TargetType is <type 'NoneType'>, expected <type 'basestring'>

Fixes #1539

@markpeek markpeek merged commit 5e48c7d into cloudtools:master Oct 4, 2020
@markpeek
Copy link
Member

markpeek commented Oct 4, 2020

Thanks!

@alexeyts alexeyts deleted the fix_target_type_validation branch October 5, 2020 05:24
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.

Unit Test for TargetGroup Target Type seems to prevent using a parameter to specify the value
2 participants