]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Added suggested comment. 322/head
authorSandon Van Ness <sandon@redhat.com>
Thu, 6 Nov 2014 20:20:16 +0000 (12:20 -0800)
committerSandon Van Ness <sandon@redhat.com>
Thu, 6 Nov 2014 20:20:16 +0000 (12:20 -0800)
Signed-off-by: Sandon Van Ness <sandon@redhat.com>
teuthology/lock.py

index ec71bf5b0fe503847b1cb3f6b2136b675636d4cf..2756005270ff75ba47f397ce329896a8dfe31b1b 100644 (file)
@@ -350,6 +350,8 @@ def list_locks(keyed_by_name=False, **kwargs):
 
 def update_lock(name, description=None, status=None, ssh_pub_key=None):
     name = misc.canonicalize_hostname(name, user=None)
+    # Only do VM specific things (key lookup) if we are not
+    # Just updating the status (like marking down).
     if not status:
         status_info = get_status(name)
         if status_info['is_vm']: