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: v12.2.9~5^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c76b17949abba87e7ba5a9b30acb53166e1c55ab;p=ceph.git ceph-volume: raise a non zero exit code if strategy changes with batch Signed-off-by: Andrew Schoen (cherry picked from commit 9dfc00f8e10e10fbdc52c44259596c6a96a90edd) --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/batch.py b/src/ceph-volume/ceph_volume/devices/lvm/batch.py index a643e0aa18677..84580a562538e 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)