Empty ini files not outputting correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
anvil |
Fix Released
|
Critical
|
Joshua Harlow |
Bug Description
It appears empty configuration files, with values being set on them do not actually result in those values then being output. This appears to be a feature/bug of iniparse and configparser and how it handles the DEFAULT section whereby if the DEFAULT section is not present in the initial document that subsequent modifications to the DEFAULT sections keys and values will not cause a new DEFAULT section to be created (and then output). Since nova.conf.sample recently disappeared and now the handling of this returns an empty string (without a DEFAULT section) we need to add logic that creates a DEFAULT section if it is not present in the initial document to ensure that the keys/values we add/remove/set are actually adjusted and output correctly.
Changed in anvil: | |
importance: | Undecided → Critical |
assignee: | nobody → Joshua Harlow (harlowja) |
Changed in anvil: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/85796
Review: https:/