Closed syuu1228 closed 8 months ago
Note that, once we rewrite YAML file with yaml.dump(), we lose all comments on the file. That was the reason why we currently using re.sub() instead of yaml module. But I think it’s more important to avoid such build failure.
Note that, once we rewrite YAML file with yaml.dump(), we lose all comments on the file. That was the reason why we currently using re.sub() instead of yaml module. But I think it’s more important to avoid such build failure.
we have the same problem with scylla.yaml as well.
we probably should swith to https://pypi.org/project/ruamel.yaml/ which does preserve comments
@syuu1228 Running https://jenkins.scylladb.com/job/scylla-master/job/releng-testing/job/ami/234/ to verify it's working. once it pass i will merge
@syuu1228 Running https://jenkins.scylladb.com/job/scylla-master/job/releng-testing/job/ami/234/ to verify it's working. once it pass i will merge
Passed the problematic phase
we have the same problem with scylla.yaml as well.
we probably should swith to https://pypi.org/project/ruamel.yaml/ which does preserve comments
@fruch Yes, maybe we should try that.
On latest master, re.sub() is failing since regex pattern is not matched with cloud.cfg on latest Ubuntu image. To avoid such problem, we should use yaml module instead.