]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix --unlock
authorZack Cerza <zack.cerza@inktank.com>
Tue, 26 Aug 2014 16:32:36 +0000 (10:32 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Tue, 26 Aug 2014 16:32:36 +0000 (10:32 -0600)
Note to self: clean up user/ctx.owner confusion

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/lock.py

index 5cc78433b6e583aa55f7acebf9b21906b2ffab28..226e667dbe036b60e4a90cab61cae8d39472b3e6 100644 (file)
@@ -164,6 +164,8 @@ def main(ctx):
                 machines_to_update.append(machine)
                 provision.create_if_vm(ctx, machine)
     elif ctx.unlock:
+        if ctx.owner is None and user is None:
+            user = misc.get_user()
         # If none of them are vpm, do them all in one shot
         if not filter(is_vpm, machines):
             res = unlock_many(machines, user)