--- a/components/openstack/neutron/files/neutron-upgrade Tue Apr 28 12:29:58 2015 -0400
+++ b/components/openstack/neutron/files/neutron-upgrade Tue Apr 28 11:51:13 2015 -0700
@@ -143,6 +143,7 @@
for key, value in section_items:
# keep a copy of the old value
oldvalue = value
+ oldsection = section
if mapping is not None:
section, key = update_mapping(section, key, mapping)
@@ -173,6 +174,7 @@
if not new.has_option(section, key) or \
'%SERVICE' in new.get(section, key):
new.set(section, key, value)
+ section = oldsection
# copy the old conf file to a backup
today = datetime.now().strftime("%Y%m%d%H%M%S")