]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
ansible.py: catch yaml.YAMLError when yaml.safe_load() 1264/head
authorKefu Chai <kchai@redhat.com>
Mon, 4 Mar 2019 16:46:24 +0000 (00:46 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 4 Mar 2019 16:51:25 +0000 (00:51 +0800)
commite26e58a77f4a89f7b838aacad801d04fc194f953
tree957759ae6f1f4957ee7cff559a6270e2f18680d4
parente7b685520125f36747d4fabe613966d10c51a106
ansible.py: catch yaml.YAMLError when yaml.safe_load()

yaml.safe_load() also throws yaml.scanner.ScannerError. so use
yaml.YAMLError to cover them all. see
https://pyyaml.org/wiki/PyYAMLDocumentation .

Signed-off-by: Kefu Chai <kchai@redhat.com>
teuthology/task/ansible.py