From 1d16a9ba7f1a373287925014e31574a2f141b272 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 13 Jul 2013 13:09:07 -0700 Subject: [PATCH] lock: drop machine-type default, but require for lock-many Signed-off-by: Sage Weil --- teuthology/lock.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/teuthology/lock.py b/teuthology/lock.py index b97e61cdc4ba9..b5350aa9dd968 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -182,7 +182,7 @@ Lock, unlock, or query lock status of machines. ) parser.add_argument( '--machine-type', - default='plana', + default=None, help='Type of machine to lock', ) parser.add_argument( @@ -267,6 +267,9 @@ Lock, unlock, or query lock status of machines. '--all and --owner are mutually exclusive' assert not machines, \ '--all and listing specific machines are incompatible' + if ctx.num_to_lock: + assert ctx.machine_type, \ + 'must specify machine type to lock' if ctx.brief: assert ctx.list, '--brief only applies to --list' -- 2.39.5