From: Loic Dachary Date: Tue, 1 Jul 2014 10:19:54 +0000 (+0200) Subject: erasure-code: str() to avoid + conversion errors X-Git-Tag: 1.1.0~1360^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e5d1703b9305684558794216a42e1495feaa105;p=teuthology.git erasure-code: str() to avoid + conversion errors 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 --- diff --git a/teuthology/task_util/rados.py b/teuthology/task_util/rados.py index 8cf7177f1..4b42b309b 100644 --- a/teuthology/task_util/rados.py +++ b/teuthology/task_util/rados.py @@ -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() ]