From 03597ca6b92f02f8263c837250a3308df7226e57 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Thu, 21 Jun 2012 14:32:51 -0700 Subject: [PATCH] Check for machine args based on local, not ctx.machines Signed-off-by: Dan Mick --- teuthology/lock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/lock.py b/teuthology/lock.py index 8b4df8537fe80..2161259ce353e 100644 --- a/teuthology/lock.py +++ b/teuthology/lock.py @@ -239,7 +239,7 @@ Lock, unlock, or query lock status of machines. if ctx.f: assert ctx.lock or ctx.unlock, \ '-f is only supported by --lock and --unlock' - if ctx.machines: + if machines: assert ctx.lock or ctx.unlock or ctx.list or ctx.list_targets \ or ctx.update, \ 'machines cannot be specified with that operation' -- 2.39.5