Check for machine args based on local, not ctx.machines

Signed-off-by: Dan Mick <dan.mick@inktank.com>
This commit is contained in:
Dan Mick 2012-06-21 14:32:51 -07:00
parent 7773a93e3e
commit 03597ca6b9

View File

@ -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'