mirror of
https://github.com/ceph/ceph
synced 2025-01-29 06:24:03 +00:00
Success of test may not have been set yet.
This commit is contained in:
parent
f92b3a1cca
commit
e69cf0b1b7
@ -70,7 +70,7 @@ def lock_machines(ctx, config):
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
if ctx.summary['success'] or not ctx.keep_locked_on_error:
|
||||
if not ctx.keep_locked_on_error or ctx.summary.get('success', False):
|
||||
log.info('Unlocking machines...')
|
||||
for machine in ctx.config['targets']:
|
||||
lock.unlock(ctx, machine, ctx.owner)
|
||||
|
Loading…
Reference in New Issue
Block a user