]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_manager: take int or string to osd_admin_socket
authorSage Weil <sage@inktank.com>
Thu, 7 Feb 2013 01:14:24 +0000 (17:14 -0800)
committerSage Weil <sage@inktank.com>
Thu, 7 Feb 2013 01:14:24 +0000 (17:14 -0800)
This fixes a failure on dump_stuck.

teuthology/task/ceph_manager.py

index d9008004f6c31f1e42eebb8551075cbd42529513..67d8b47489dd8360ded1a4805cdcbcae5055110a 100644 (file)
@@ -270,7 +270,7 @@ class CephManager:
         remote = None
         for _remote, roles_for_host in self.ctx.cluster.remotes.iteritems():
             for id_ in teuthology.roles_of_type(roles_for_host, 'osd'):
-                if int(id_) == osdnum:
+                if int(id_) == int(osdnum):
                     remote = _remote
         assert remote is not None
         args=[