From 2e8496a6e0b74ff351bc2a4f138ddc665d8c30ca 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 (cherry picked from commit 07888ef3fd4440332c8287d0faa9f23a32cf141c) --- src/ceph-disk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-disk b/src/ceph-disk index 1614a1ee07168..39f7fd06a6055 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -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( -- 2.39.5