]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task: fix admin_socket for non-int ids
authorJohn Spray <jspray@redhat.com>
Tue, 8 Jul 2014 11:44:40 +0000 (12:44 +0100)
committerJohn Spray <jspray@redhat.com>
Tue, 15 Jul 2014 12:30:16 +0000 (13:30 +0100)
This was working for OSDs and for my config
where MDS happened to have numeric ID, but
in general service IDs are strings, not ints.

Signed-off-by: John Spray <john.spray@redhat.com>
teuthology/task/ceph_manager.py

index 3ed9c251ff2988d76e6e5a4f17a827b87f1947fd..8d638ff675de48eff65fa34c1957c6c925b09a9b 100644 (file)
@@ -532,7 +532,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, service_type):
-                if int(id_) == int(service_id):
+                if id_ == str(service_id):
                     remote = _remote
         assert remote is not None
         args = [