From 07888ef3fd4440332c8287d0faa9f23a32cf141c Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sun, 15 Dec 2013 15:34:17 +0100 Subject: [PATCH] ceph-disk: zap needs at least one device 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 --- src/ceph-disk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-disk b/src/ceph-disk index 3709dd2a863fb..52026d1dcd3dd 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -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( -- 2.39.5