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:
Andrew Schoen 2018-10-03 15:01:08 -05:00
parent 9752d03cc1
commit 9dfc00f8e1

View File

@ -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)