]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: zap needs at least one device 945/head
authorLoic Dachary <loic@dachary.org>
Sun, 15 Dec 2013 14:34:17 +0000 (15:34 +0100)
committerLoic Dachary <loic@dachary.org>
Sun, 15 Dec 2013 14:34:17 +0000 (15:34 +0100)
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>
src/ceph-disk

index 3709dd2a863fbb97e4b2dce1dcae3d6f8b2e658b..52026d1dcd3dd4aabd444104f704effe0e4111c2 100755 (executable)
@@ -2384,7 +2384,7 @@ def parse_args():
     zap_parser.add_argument(
         'dev',
         metavar='DEV',
-        nargs='*',
+        nargs='+',
         help='path to block device',
         )
     zap_parser.set_defaults(