Merge lp:~gandelman-a/charms/precise/glance/cfgparser into lp:~charmers/charms/precise/glance/trunk
Status: | Merged |
---|---|
Approved by: | Mark Mims |
Approved revision: | 31 |
Merged at revision: | 32 |
Proposed branch: | lp:~gandelman-a/charms/precise/glance/cfgparser |
Merge into: | lp:~charmers/charms/precise/glance/trunk |
Diff against target: |
170 lines (+56/-74) 4 files modified
hooks/glance-common (+17/-62) hooks/glance-relations (+12/-11) hooks/lib/openstack-common (+26/-0) revision (+1/-1) |
To merge this branch: | bzr merge lp:~gandelman-a/charms/precise/glance/cfgparser |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mark Mims (community) | Approve | ||
Review via email: mp+150887@code.launchpad.net |
Description of the change
This should fix issues where certain config files need to updated differently depending on the Openstack version being deployed.
Adds an openstack-common function to update a config file using the python standard ConfigParser. Charms are free to wrap this when updating config and we can move away from using difficult-
One drawback is that we lose any comments that may have existed as documentation in the package-provided config.
lgtm
Dude, ConfigParser wrappers in the bash charm-helpers would rock! You know, for the next time you're bored or something :)
filed https:/ /bugs.launchpad .net/charm- tools/+ bug/1154225