Skip to content

Commit

Permalink
ceph-disk: zap needs at least one device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Loic Dachary committed Dec 15, 2013
1 parent c744aec commit 07888ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ceph-disk
Expand Up @@ -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(
Expand Down

0 comments on commit 07888ef

Please sign in to comment.