]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Ansible._handle_failure: Catch all Exceptions 1865/head
authorZack Cerza <zack@redhat.com>
Thu, 13 Jul 2023 22:58:05 +0000 (16:58 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 13 Jul 2023 22:58:05 +0000 (16:58 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/ansible.py

index 1d487ab502ce1ead4a4d8ed7cfb6c570abf2c2dd..6ccdc7664c615e3c46d618ce04a47cff3f976925 100644 (file)
@@ -363,7 +363,7 @@ class Ansible(Task):
             try:
                 analyzer = FailureAnalyzer()
                 failures = analyzer.analyze(fail_log)
-            except yaml.YAMLError as e:
+            except Exception as e:
                 log.error(
                     "Failed to parse ansible failure log: {0} ({1})".format(
                         self.failure_log.name, e