From 794c9465dae20a8e4afd66a5180080fb2aeec221 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 3 May 2014 07:24:32 -0700 Subject: [PATCH] ceph_manager: fix float stringification Signed-off-by: Sage Weil --- teuthology/task/ceph_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/task/ceph_manager.py b/teuthology/task/ceph_manager.py index 0a16375ff..0ead9d08f 100644 --- a/teuthology/task/ceph_manager.py +++ b/teuthology/task/ceph_manager.py @@ -131,8 +131,8 @@ class Thrasher: if osd is None: osd = random.choice(self.in_osds) val = random.uniform(.1, 1.0) - self.log("Reweighting osd %s to %f" % (str(osd), val)) - self.ceph_manager.raw_cluster_cmd('osd', 'reweight', str(osd), val) + self.log("Reweighting osd %s to %s" % (str(osd), str(val))) + self.ceph_manager.raw_cluster_cmd('osd', 'reweight', str(osd), str(val)) def primary_affinity(self, osd=None): if osd is None: -- 2.47.3