commit 9902d7469ad53bef4fdcb91793fb3b9d1d443a3d
Author: Kevin Carter <email address hidden>
Date: Thu Feb 20 12:13:34 2020 -0600
Add handler for exception raising
This change adds a switch that will enable or disable raising an
exception when a playbook executes. This will allow some methods to
return the RC and status information when a playbook is run, even when
there's a failure. The default behaviour is to raise an exception on
failure, but when fail_on_rc is set to False the run_ansible_playbook
method will return the status and rc information regardless of any
failures.
To ensure we're not raising an exception from the ansible runner library
its been changed to RuntimeError.
Change-Id: I3af652615b5227144256074c05170d148f19bc1d
Closes-Bug: #1859182
Signed-off-by: Kevin Carter <email address hidden>
Reviewed: https:/ /review. opendev. org/708942 /git.openstack. org/cgit/ openstack/ python- tripleoclient/ commit/ ?id=9902d7469ad 53bef4fdcb91793 fb3b9d1d443a3d
Committed: https:/
Submitter: Zuul
Branch: master
commit 9902d7469ad53be f4fdcb91793fb3b 9d1d443a3d
Author: Kevin Carter <email address hidden>
Date: Thu Feb 20 12:13:34 2020 -0600
Add handler for exception raising
This change adds a switch that will enable or disable raising an playbook
exception when a playbook executes. This will allow some methods to
return the RC and status information when a playbook is run, even when
there's a failure. The default behaviour is to raise an exception on
failure, but when fail_on_rc is set to False the run_ansible_
method will return the status and rc information regardless of any
failures.
To ensure we're not raising an exception from the ansible runner library
its been changed to RuntimeError.
Change-Id: I3af652615b5227 144256074c05170 d148f19bc1d
Closes-Bug: #1859182
Signed-off-by: Kevin Carter <email address hidden>