]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Clarify error logging in destroy_if_vm()
authorZack Cerza <zack@redhat.com>
Fri, 13 Feb 2015 03:20:45 +0000 (20:20 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 3 Apr 2015 03:42:30 +0000 (21:42 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/provision.py

index d82891baff1b2743573a01dfd4b189079ba00a0c..42788ae44ef81356c8420e6e83a354836a63a8ff 100644 (file)
@@ -129,7 +129,8 @@ def destroy_if_vm(ctx, machine_name, user=None, description=None):
                          stdout=subprocess.PIPE, stderr=subprocess.PIPE,)
     owt, err = p.communicate()
     if err:
-        log.error(err)
+        log.error("Error destroying {machine}: {msg}".format(
+            machine=machine_name, msg=err))
         return False
     else:
         log.info("%s destroyed: %s" % (machine_name, owt))