这是indexloc提供的服务,不要输入任何密码
Skip to content

Dump input policy on failure in debug mode #30

@gberche-orange

Description

@gberche-orange

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions