]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: zap needs at least one device
authorLoic Dachary <loic@dachary.org>
Sun, 15 Dec 2013 14:34:17 +0000 (15:34 +0100)
committerAlfredo Deza <alfredo@deza.pe>
Wed, 12 Feb 2014 21:17:11 +0000 (16:17 -0500)
If given no argument, ceph-disk zap should display the usage instead of
silently doing nothing. Silence can be confused with "I zapped all the
disks".

http://tracker.ceph.com/issues/6981 fixes #6981

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 07888ef3fd4440332c8287d0faa9f23a32cf141c)

src/ceph-disk

index 1614a1ee07168153d14679a57a79c35a55378575..39f7fd06a6055b3a04c19cfb0ea497c18f238747 100755 (executable)
@@ -2387,7 +2387,7 @@ def parse_args():
     zap_parser.add_argument(
         'dev',
         metavar='DEV',
-        nargs='*',
+        nargs='+',
         help='path to block device',
         )
     zap_parser.set_defaults(