]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: raise a non zero exit code if strategy changes with batch
authorAndrew Schoen <aschoen@redhat.com>
Wed, 3 Oct 2018 20:01:08 +0000 (15:01 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 15 Oct 2018 16:55:52 +0000 (11:55 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 9dfc00f8e10e10fbdc52c44259596c6a96a90edd)

src/ceph-volume/ceph_volume/devices/lvm/batch.py

index a643e0aa186773729f648e77473cfa15b9c457c7..84580a562538e060a902cb802c6c3d2ae27dc52b 100644 (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)