From ba57fb68cf542252ae70929207833454901f2fd0 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 15 Apr 2015 15:55:42 +0800 Subject: [PATCH] ceph-disk: set '--cluster=ceph' in 'prepare' subcommand otherwise the 'ceph' default value won't be catched by "main_prepare()", this breaks TEST_corrupt_and_repair_replicated. seems the behaviour was changed in python 2.7.9, so we move the default value to where the '--cluster' argument is added instead of setting it in the main argument parser. Signed-off-by: Kefu Chai --- src/ceph-disk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-disk b/src/ceph-disk index 5bc161dc92ecc..df48a2a9c675a 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -2773,7 +2773,6 @@ def parse_args(): parser.set_defaults( # we want to hold on to this, for later prog=parser.prog, - cluster='ceph', ) subparsers = parser.add_subparsers( @@ -2786,6 +2785,7 @@ def parse_args(): prepare_parser.add_argument( '--cluster', metavar='NAME', + default='ceph', help='cluster name to assign this disk to', ) prepare_parser.add_argument( -- 2.39.5