From: Sage Weil Date: Sat, 3 May 2014 14:24:32 +0000 (-0700) Subject: ceph_manager: fix float stringification X-Git-Tag: v0.94.10~27^2^2~364^2~208 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=794c9465dae20a8e4afd66a5180080fb2aeec221;p=ceph.git ceph_manager: fix float stringification Signed-off-by: Sage Weil --- diff --git a/teuthology/task/ceph_manager.py b/teuthology/task/ceph_manager.py index 0a16375ff6cdb..0ead9d08f98e6 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: