mirror of
https://github.com/ceph/ceph
synced 2025-04-11 04:02:04 +00:00
qa/tasks/ceph: only use monmaptool --addv if addr has [,:v]
Otherwise, we want the --add path, which has the logic to infer ports, v2+v1, etc. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
ac2430a43d
commit
241d402d7c
@ -528,7 +528,7 @@ def create_simple_monmap(ctx, remote, conf, mons,
|
||||
]
|
||||
for (name, addr) in addresses:
|
||||
n = name[4:]
|
||||
if mon_bind_addrvec:
|
||||
if mon_bind_addrvec and (',' in addr or 'v' in addr or ':' in addr):
|
||||
args.extend(('--addv', n, addr))
|
||||
else:
|
||||
args.extend(('--add', n, addr))
|
||||
|
Loading…
Reference in New Issue
Block a user