]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume main raise sys.exit to prevent garbage in help
authorAlfredo Deza <adeza@redhat.com>
Tue, 13 Nov 2018 13:32:16 +0000 (08:32 -0500)
committerAlfredo Deza <adeza@redhat.com>
Wed, 14 Nov 2018 18:23:01 +0000 (13:23 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit f695d1716e9fc6252dd713eb8fb08c28b1284611)

src/ceph-volume/ceph_volume/main.py

index edd9db37a33692662166fe4edf92d5eedad0cf7f..4685cb41c395156540244097e0a92d8ad377f11c 100644 (file)
@@ -105,7 +105,7 @@ Ceph Conf: {ceph_path}
         # argparse which will end up complaning that there are no args
         if len(argv) <= 1:
             print(self.help(warning=True))
-            return
+            raise SystemExit(0)
         parser = argparse.ArgumentParser(
             prog='ceph-volume',
             formatter_class=argparse.RawDescriptionHelpFormatter,