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

Dump input policy on failure in debug mode #30

Open
gberche-orange opened this issue Dec 22, 2020 · 0 comments
Open

Dump input policy on failure in debug mode #30

gberche-orange opened this issue Dec 22, 2020 · 0 comments

Comments

@gberche-orange
Copy link

Is your feature request related to a problem? Please describe.

As a hcunit user

  • in order to troubleshoot failed assertion
  • I need an easy way to inspect the content of the input object against which policies are executed

Describe the solution you'd like

when --debug flag is set (possibly with an additional --dump-input), then upon a policy failure, then the input structure is dumped to stdout as yaml (which includes all hashes, i.e. rendered templates, values and potential others in the future)

Describe alternatives you've considered

Additional context
Add any other context or screenshots about the feature request here.

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

No branches or pull requests

1 participant