Skip to content

Commit

Permalink
ansible-lint: Add explicit start to prepare-config (#598)
Browse files Browse the repository at this point in the history
Since ansible-lint-24.10.0, the parsing of the config is partially
failing if the yaml in to config file isn't preceded by the "---"
marker. Make sure that it is preserved in the merged config file.

Signed-off-by: Dr. Jens Harbott <[email protected]>
  • Loading branch information
osfrickler authored Nov 21, 2024
1 parent fd21b39 commit 95bd3db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ansible-lint/files/prepare-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
)

with open("/zuul/.ansible-lint", "w+") as fp:
fp.write(hiyapyco.dump(conf, default_flow_style=True))
fp.write(hiyapyco.dump(conf,
default_flow_style=True,
explicit_start=True))

0 comments on commit 95bd3db

Please sign in to comment.