Skip to content

tests: Improve Ansible fail_msg formatting#1136

Merged
moreati merged 1 commit intomitogen-hq:masterfrom
moreati:fail_msg
Oct 6, 2024
Merged

tests: Improve Ansible fail_msg formatting#1136
moreati merged 1 commit intomitogen-hq:masterfrom
moreati:fail_msg

Conversation

@moreati
Copy link
Member

@moreati moreati commented Oct 6, 2024

By switching to block style (|) with clip (no - or +) the failure messages don't require quoting and gain a single trailing newline. This causes Ansible to print them as block style, when using the yaml stdout callback plugin. As a result the values have one less layer of quoting and quote escaping, making them much easier to read.

By switching to block style (`|`) with clip (no `-` or `+`) the failure
messages don't require quoting and gain a single trailing newline. This causes
Ansible to print them as block style, when using the yaml stdout callback
plugin. As a result the values have one less layer of quoting and quote
escaping, making them much easier to read.
@moreati moreati merged commit de3c6dc into mitogen-hq:master Oct 6, 2024
@moreati moreati deleted the fail_msg branch October 6, 2024 20:34
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.

1 participant