]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_manager: fix float stringification
authorSage Weil <sage@inktank.com>
Sat, 3 May 2014 14:24:32 +0000 (07:24 -0700)
committerSage Weil <sage@inktank.com>
Sat, 3 May 2014 14:24:32 +0000 (07:24 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/task/ceph_manager.py

index 0a16375ff6cdb957d43beab389845daf961a7452..0ead9d08f98e6f9d06f7b72f6f910b6a8ece9d36 100644 (file)
@@ -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: