]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
ansible: rename log to fail_log to not conflict with ansible.log 597/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 14 Aug 2015 14:10:32 +0000 (09:10 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 14 Aug 2015 14:10:32 +0000 (09:10 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
teuthology/task/ansible.py

index 03fe4ab7586f7272190f0c11c92768d7d0087852..e4f14695f2e30493818193713811fd1e33f106dd 100644 (file)
@@ -263,9 +263,9 @@ class Ansible(Task):
 
     def _handle_failure(self, command, status):
         failures = None
-        with open(self.failure_log.name, 'r') as log:
+        with open(self.failure_log.name, 'r') as fail_log:
             try:
-                failures = yaml.safe_load(log)
+                failures = yaml.safe_load(fail_log)
             except yaml.parser.ParserError:
                 log.exception(
                     "Failed to parse ansible failure log: {0}".format(