]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
get_file() returns a str, not a StringIO...
authorZack Cerza <zack@cerza.org>
Fri, 7 Feb 2014 20:05:08 +0000 (14:05 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 20 Feb 2014 23:46:07 +0000 (17:46 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/task/devstack.py

index 35363ee887808c7e93696f75b9522b2457310915..da3c5a2993ca0f230ecf9ff9b913a17af7673ba7 100644 (file)
@@ -165,7 +165,6 @@ def update_devstack_config_files(devstack_node, secret_uuid):
                       section='DEFAULT'):
         parser = ConfigParser()
         parser.read_file(config_stream)
-        parser.update(update_dict)
         for (key, value) in update_dict.items():
             parser.set(section, key, value)
         out_stream = StringIO()
@@ -212,7 +211,8 @@ def update_devstack_config_files(devstack_node, secret_uuid):
     for update in updates:
         file_name = update['name']
         options = update['options']
-        config_stream = misc.get_file(devstack_node, file_name, sudo=True)
+        config_str = misc.get_file(devstack_node, file_name, sudo=True)
+        config_stream = StringIO(config_str)
         backup_config(devstack_node, file_name)
         new_config_stream = update_config(file_name, config_stream, options)
         misc.sudo_write_file(devstack_node, file_name, new_config_stream)