mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
ceph-volume: raise a non zero exit code if strategy changes with batch
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
This commit is contained in:
parent
9752d03cc1
commit
9dfc00f8e1
@ -170,7 +170,7 @@ class Batch(object):
|
||||
if type(strategy) != type(new_strategy):
|
||||
if not args.report:
|
||||
mlogger.error("aborting because strategy changed from %s to %s after filtering" % (strategy, new_strategy))
|
||||
raise SystemExit(0)
|
||||
raise SystemExit(1)
|
||||
else:
|
||||
strategy = new_strategy
|
||||
return strategy(unused_devices, args)
|
||||
|
Loading…
Reference in New Issue
Block a user