Delete constraints and requirements files on build fail
If the installation of Python packages fails for any reason, the
constraint and requirements file is already written and therefore
unless you delete the virtualenv, it would not rebuild things
again.
This patch will handle failure and delete those files, then provide
a warning for the user upon failing to inspect the needed file.
Reviewed: https:/ /review. openstack. org/651598 /git.openstack. org/cgit/ openstack/ ansible- role-python_ venv_build/ commit/ ?id=b2abfe4bad7 e7b440e79b04846 1cfbfda2b06757
Committed: https:/
Submitter: Zuul
Branch: master
commit b2abfe4bad7e7b4 40e79b048461cfb fda2b06757
Author: Mohammed Naser <email address hidden>
Date: Wed Apr 10 12:18:45 2019 -0400
Delete constraints and requirements files on build fail
If the installation of Python packages fails for any reason, the
constraint and requirements file is already written and therefore
unless you delete the virtualenv, it would not rebuild things
again.
This patch will handle failure and delete those files, then provide
a warning for the user upon failing to inspect the needed file.
Closes-Bug: #1824189
Change-Id: I67db44ce102509 08f23c26c90d271 a780a875eb6