From: Andrew Schoen Date: Wed, 3 Oct 2018 20:01:08 +0000 (-0500) Subject: ceph-volume: raise a non zero exit code if strategy changes with batch X-Git-Tag: v14.0.1~78^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9dfc00f8e10e10fbdc52c44259596c6a96a90edd;p=ceph.git ceph-volume: raise a non zero exit code if strategy changes with batch Signed-off-by: Andrew Schoen --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/batch.py b/src/ceph-volume/ceph_volume/devices/lvm/batch.py index a643e0aa1867..84580a562538 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/batch.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/batch.py @@ -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)