Tweak coreos block in greenwave config to avoid newline issues #2462
No reviewers
Labels
No labels
freeze-break-request
post-freeze
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Infrastructure/ansible#2462
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "greenwave-coreos-newline-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Well, I hope, anyway. This is a nightmare to predict/test because
jinja is weird and ansible puts it in a weird non-standard mode.
But this does the same thing as the product_versions macro we
use for all other releases - just leave out all attempts to avoid
blank lines.
It might cause blank lines in some states, but I think I found
(while testing product_versions) that blank lines don't break the
parsing. I can't find anywhere in the YAML spec where it actually
defines when a block sequence ends, but as a matter of fact it
seems like whatever parser is being used here doesn't choke on
blank lines.
My ideal goal here is that, whatever entries are present or
absent based on the conditionals, we get a clean block sequence
with each entry on its own line and no blank lines, but this
seems to be incredibly hard to get jinja to do.
Signed-off-by: Adam Williamson awilliam@redhat.com
@kevin shall we try this on stg and see what rendering we get, and how greenwave parses it?
Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/0728ef6856354c6d85dcdc0db6430922
rebased onto
09418d9216
Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/1288da88b1f942368f5ce4f844740eb2
let's do that...
Pull-Request has been merged by adamwill
ok, I tested this and it looks OK at least with current state. when we release F42 (and hence branched stops existing) we'd better check it again.