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

change isinstance AWSHelperFn to inspect class names #141

Merged
merged 3 commits into from
Sep 26, 2020
Merged

change isinstance AWSHelperFn to inspect class names #141

merged 3 commits into from
Sep 26, 2020

Conversation

ITProKyle
Copy link
Contributor

@ITProKyle ITProKyle commented Mar 16, 2020

This will allow for the internal awacs.AWSHelperFn class + subclasses and troposphere.AWSHelperFn class + subclasses to be used as a value for all properties enabling the use of troposphere.Ref or similar to be used.

Resolves #139.

This will allow for the internal AWSHelperFn class & its subclasses and troposphere AWSHelperFn class & its subclasses to be used as a value for all property values enabling the use of troposphere.Ref or similar to be used.
Copy link
Member

@markpeek markpeek left a comment

Choose a reason for hiding this comment

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

Thank you for implementing this solution. Could you add some positive and negative tests into the "tests" directory to validate proper functioning of it?

@ITProKyle ITProKyle requested a review from markpeek March 17, 2020 16:58
@troyready
Copy link
Contributor

@markpeek would you be able to re-review now?

@acmcelwee
Copy link
Member

acmcelwee commented Jun 5, 2020

I just ran into this same issue, with trying to use a troposphere.If value for the Resource in an awacs.aws.Statement.

As I think about this more, I wonder if awacs needs a reciprocal compat.py like troposphere has. Thoughts, anyone?

EDIT
I now see #55 has more discussion and workarounds that others have used for this issue.

@ITProKyle
Copy link
Contributor Author

Any updates on getting this (or any other PR that addresses the issue) merged?

Copy link
Member

@markpeek markpeek left a comment

Choose a reason for hiding this comment

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

LGTM

@markpeek markpeek merged commit 6844eb0 into cloudtools:master Sep 26, 2020
@markpeek
Copy link
Member

Thank you for adding the test and your patience for me getting it merged.

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.

Unable to Create IAM Policy Statement (awacs.aws.Statement) that is a troposphere.Ref
4 participants