Merge bootstack-ops:bypass-question-mark into bootstack-ops:master
Proposed by
Joe Guo
Status: | Merged |
---|---|
Approved by: | Xav Paice |
Approved revision: | 8c20339d3f39b0683e03b10ff4789a6bfebeb277 |
Merged at revision: | 4210b3d570fbd74905b004105343d22f3ddccecd |
Proposed branch: | bootstack-ops:bypass-question-mark |
Merge into: | bootstack-ops:master |
Diff against target: |
40 lines (+13/-2) 1 file modified
bootstack-ops/juju_bundle_export.py (+13/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xav Paice (community) | Approve | ||
Review via email: mp+384084@code.launchpad.net |
Commit message
juju_bundle_
In bindings section, option with empty key is allowed:
bindings:
"": internal-space
However, after read bundle with pyyaml, it will be dumped to:
bindings:
? ''
: internal-space
`?` and space is used by yaml spec to indicate complex mapping keys:
https:/
For some reason, empty str is also considered as complex key here, and there is no way to turn that off in pyyaml.
It's still valid yaml syntax, but may confuse people.
This patch replace empty key to a placeholder, and replace it back after
dump, to bypass this issue.
To post a comment you must log in.
This merge proposal is being monitored by mergebot. Change the status to Approved to merge.