]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
erasure-code: str() to avoid + conversion errors
authorLoic Dachary <loic@dachary.org>
Tue, 1 Jul 2014 10:19:54 +0000 (12:19 +0200)
committerLoic Dachary <loic@dachary.org>
Tue, 1 Jul 2014 10:19:54 +0000 (12:19 +0200)
if the value from the yaml file is an int, it must be converted into a
string bevore being concatenated with '='

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/task_util/rados.py

index 8cf7177f1cdaca0ef0158afa9f5862a9842ac4c8..4b42b309bcc6cd1b804e24183de95835a84eba94 100644 (file)
@@ -75,4 +75,4 @@ def cmd_erasure_code_profile(profile_name, profile):
     return [
         'ceph', 'osd', 'erasure-code-profile', 'set',
         profile_name
-        ] + [ key + '=' + value for key, value in profile.iteritems() ]
+        ] + [ str(key) + '=' + str(value) for key, value in profile.iteritems() ]