-
Notifications
You must be signed in to change notification settings - Fork 313
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
Generate yaml helper cannot generate all yaml #1173
Comments
Perhaps we could investigate simply copying the code from |
@zaro0508 , @alexharv074 I just dove into this a little bit to take an initial swing at fixing this bug and doing some refactoring in the outputting code we have. When I did, a few things became clear to me:
The most egregious example of these is in the
I think what the application needs is a universal outputter that responds to the output format argument. It should be well-documented and well-tested. But overall, I think we really ought to look at completely replacing the "guts" of the |
Subject of the issue
While developing a feature, I have noted that the
_generate_yaml
method insceptre/cli/helpers.py
cannot handle all yaml.Your environment
Steps to reproduce
Given this
stream
:Expected behaviour
The tool
cfn-flip
handles this fine and generates:Actual behaviour
Because this
stream
is not a list, the code tries toyaml.safe_loads
it, which raisesAttributeError("module 'yaml' has no attribute 'safe_loads'",)
. The method then returns thestream
back to the caller.The text was updated successfully, but these errors were encountered: