]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
No need to invoke teuthology-nuke if there is nothing to nuke 377/head
authorIlya Dryomov <idryomov@redhat.com>
Wed, 3 Dec 2014 10:47:09 +0000 (13:47 +0300)
committerIlya Dryomov <idryomov@redhat.com>
Thu, 4 Dec 2014 17:29:28 +0000 (20:29 +0300)
Slipped in with 26803da18d1b ("Rewrite portions of teuthology.kill").

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
teuthology/kill.py

index 0a8f7e2a29e9b239e02ec51b9dfd8cd9c375cf3d..fac4e43615fbe7aef15e4db38d8cf29cc4b23e83 100755 (executable)
@@ -215,6 +215,7 @@ def nuke_targets(targets_dict, owner):
     targets = targets_dict.get('targets')
     if not targets:
         log.info("No locked machines. Not nuking anything")
+        return
 
     to_nuke = []
     for target in targets: