]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
ansible: raise an AnsibleFailedError even when parsing fails 600/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 19 Aug 2015 16:06:22 +0000 (11:06 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 19 Aug 2015 16:06:22 +0000 (11:06 -0500)
commit00d540ba4c9991bf1378a0baf9c8bfc918378d37
treeb4d242aebeff56c3c71e412b5d4819da01bbd35d
parent5b801537332049207dd9c469050533a0d96998f0
ansible: raise an AnsibleFailedError even when parsing fails

If _handle_failures fails to parse the yaml in the ansible error log, it
can still give the contents of the failure log to an AnsibleFailedError
in it's unparsed form.

I also changed the log.exception to log.error when an ParserError occurs
as I think it was confusing some having that extra traceback in the log.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
teuthology/task/ansible.py