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

Remove transformation of variables #266

Merged
merged 8 commits into from
Jan 26, 2017

Conversation

phobologic
Copy link
Member

This stops the type checker from transforming variables, making it more
strict. Magically changing the variable type was a little janky to begin
with, so I think this is the right thing to do.

Should partially fix #255

This stops the type checker from transforming variables, making it more
strict. Magically changing the variable type was a little janky to begin
with, so I think this is the right thing to do.

Should partially fix #255
@phobologic phobologic added this to the 1.0 milestone Nov 21, 2016
@phobologic
Copy link
Member Author

@mhahn any thoughts on this?

@mwildehahn
Copy link
Contributor

If we're going to do this, I think we should prevent any transformations of the variable. ie. validate_variable_type and use something more like this: https://github.com/remind101/stacker/pull/266/files#diff-9e12e7feca740fe22caedce88b419cbcR199. I think the main driver for validate_variable_type was so that we could transform to troposphere types, but since we should have native support for those soon, i don't think it is necessary.

@mwildehahn
Copy link
Contributor

Right now you could still transform the value with: https://github.com/remind101/stacker/pull/266/files#diff-9e12e7feca740fe22caedce88b419cbcR196

@phobologic
Copy link
Member Author

Ok, @mhahn, I think this should be good to go now. Let me know what you think.

@phobologic phobologic merged commit 1d5af63 into release-1.0 Jan 26, 2017
@phobologic phobologic deleted the more_strict_variable_typing branch January 26, 2017 17:19
phrohdoh pushed a commit to phrohdoh/stacker that referenced this pull request Dec 18, 2018
…_typing

Remove transformation of variables
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