]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Check for machine args based on local, not ctx.machines
authorDan Mick <dan.mick@inktank.com>
Thu, 21 Jun 2012 21:32:51 +0000 (14:32 -0700)
committerDan Mick <dan.mick@inktank.com>
Thu, 21 Jun 2012 21:33:20 +0000 (14:33 -0700)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
teuthology/lock.py

index 8b4df8537fe80495a40482a622bb2af91e9b2b5e..2161259ce353eecf973133e6161366ae1fef95af 100644 (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'