]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/mon_seesaw: expect v1/v2 prefix in addr
authorSage Weil <sage@redhat.com>
Thu, 6 Dec 2018 17:25:48 +0000 (11:25 -0600)
committerSage Weil <sage@redhat.com>
Thu, 3 Jan 2019 17:17:31 +0000 (11:17 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/mon_seesaw.py

index b101c0e416f96490827c3f5b64f07ac47c8e3b25..4b2684e12cc23cef585598abac49a1701df8e4c7 100644 (file)
@@ -24,7 +24,7 @@ def _get_next_port(ctx, ip, cluster):
     used = []
     for name in teuthology.get_mon_names(ctx, cluster):
         addr = ctx.ceph[cluster].conf[name]['mon addr']
-        mon_ip, mon_port = addr.split(':')
+        addr_type, mon_ip, mon_port = addr.split(':')
         if mon_ip != ip:
             continue
         used.append(int(mon_port))