task: fix admin_socket for non-int ids

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>
This commit is contained in:
John Spray 2014-07-08 12:44:40 +01:00
parent 8bb77ed9e1
commit 785a272bab

View 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 = [