mirror of
https://github.com/ceph/ceph
synced 2025-02-21 09:57:26 +00:00
make connect work if no roles are specified
This is useful for -nuke.
This commit is contained in:
parent
d1eb9cef38
commit
a8d4901fe6
@ -97,8 +97,13 @@ def connect(ctx, config):
|
||||
remotes = [remote.Remote(name=t, ssh=connection.connect(t))
|
||||
for t in ctx.config['targets']]
|
||||
ctx.cluster = orchestra.cluster.Cluster()
|
||||
for rem, roles in zip(remotes, ctx.config['roles']):
|
||||
ctx.cluster.add(rem, roles)
|
||||
if 'roles' in ctx.config:
|
||||
for rem, roles in zip(remotes, ctx.config['roles']):
|
||||
ctx.cluster.add(rem, roles)
|
||||
else:
|
||||
for rem in remotes:
|
||||
ctx.cluster.add(rem, rem.name)
|
||||
|
||||
|
||||
def check_conflict(ctx, config):
|
||||
log.info('Checking for old test directory...')
|
||||
|
Loading…
Reference in New Issue
Block a user