]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: fix incorrect warning 47539/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Aug 2022 15:01:19 +0000 (17:01 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 11 Aug 2022 14:51:56 +0000 (16:51 +0200)
when running `ceph orch osd rm` with `--zap`, it throws a warning
whereas it shouldn't

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/pybind/mgr/cephadm/module.py

index 73a4e1cda4c0c91e233a289e9fdd8203ba1237dc..4758a7eea4ca35a3a0084415fd8fcfcd1fe5903d 100644 (file)
@@ -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