update-clouds strips "DO NOT EDIT" warning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Medium
|
Unassigned |
Bug Description
Using a juju that had been tweaked to use https:/
This comment read: # DO NOT EDIT, will be overwritten, use “juju update-clouds” to refresh.
AIUI, this warning is meant to be present in local copies of clouds.syaml. It was provided in juju-core's cloud/fallback-
There are other formatting differences, but no content differences, leading me to think that the syaml file was parsed and then dumped from structured data, rather than being copied verbatim. This process would naturally strip comments as well.
There are several ways to address this
- Make the local copy a verbatim copy, with signature intact
- Make the local copy a verbatim copy of the body, with the signature stripped
- Prepend a new copy of the warning when dumping
- Use clouds.yaml and clouds.yaml.pgp as the source, and make local a verbatim copy of clouds.yaml.
- Use a comment-preserving yaml parser/dumper
This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.