yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #13309
[Bug 1303968] [NEW] Empty ini files not outputting correctly
Public bug reported:
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.
** Affects: anvil
Importance: Critical
Assignee: Joshua Harlow (harlowja)
Status: New
** Changed in: anvil
Importance: Undecided => Critical
** Changed in: anvil
Assignee: (unassigned) => Joshua Harlow (harlowja)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to anvil.
https://bugs.launchpad.net/bugs/1303968
Title:
Empty ini files not outputting correctly
Status in ANVIL for forging OpenStack.:
New
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/anvil/+bug/1303968/+subscriptions
Follow ups
References