From: Guillaume Abrioux Date: Wed, 10 Aug 2022 15:01:19 +0000 (+0200) Subject: cephadm: fix incorrect warning X-Git-Tag: v18.0.0~263^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F47539%2Fhead;p=ceph.git cephadm: fix incorrect warning when running `ceph orch osd rm` with `--zap`, it throws a warning whereas it shouldn't Signed-off-by: Guillaume Abrioux --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 73a4e1cda4c0..4758a7eea4ca 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -2921,9 +2921,9 @@ Then run the following: # trigger the serve loop to initiate the removal self._kick_serve_loop() - warning_zap = "" if not zap else ("\nVG/LV for the OSDs won't be zapped (--zap wasn't passed).\n" - "Run the `ceph-volume lvm zap` command with `--destroy`" - " against the VG/LV if you want them to be destroyed.") + warning_zap = "" if zap else ("\nVG/LV for the OSDs won't be zapped (--zap wasn't passed).\n" + "Run the `ceph-volume lvm zap` command with `--destroy`" + " against the VG/LV if you want them to be destroyed.") return f"Scheduled OSD(s) for removal.{warning_zap}" @handle_orch_error