From 0709b440791ac9012ab4bc663700c5e61263124f Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 14 Aug 2015 09:10:32 -0500 Subject: [PATCH] ansible: rename log to fail_log to not conflict with ansible.log Signed-off-by: Andrew Schoen --- teuthology/task/ansible.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/task/ansible.py b/teuthology/task/ansible.py index 03fe4ab75..e4f14695f 100644 --- a/teuthology/task/ansible.py +++ b/teuthology/task/ansible.py @@ -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( -- 2.47.3