From: Andrew Schoen Date: Thu, 18 Jan 2018 20:41:53 +0000 (-0600) Subject: ceph-volume: print a message to terminal if --destroy is skipped X-Git-Tag: v12.2.3~79^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d06e7d52d27f19ec1ab9d39af4f45733fbe21246;p=ceph.git ceph-volume: print a message to terminal if --destroy is skipped Signed-off-by: Andrew Schoen (cherry picked from commit d2529ee5dd9a4dc6a81eeb2d5e54c0bdd6beeb2f) --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/zap.py b/src/ceph-volume/ceph_volume/devices/lvm/zap.py index f7ec1116934d..22637d0832f4 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/zap.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/zap.py @@ -72,6 +72,9 @@ class Zap(object): logger.info("Destroying physical volume %s because --destroy was given", device) terminal.write("Destroying physical volume %s because --destroy was given" % device) api.remove_pv(device) + else: + logger.info("Skipping --destroy because no associated physical volumes are found for %s", device) + terminal.write("Skipping --destroy because no associated physical volumes are found for %s" % device) wipefs(path) zap_data(path)