Unset group and host vars variables during upgrade

Unset environment variables used by the override_folder plugin to set
paths for group and host vars since the default locations have changed
between Ocata and Pike.

Change-Id: I13c9ab9e55de25c4a70bc74f47ce489085c61bf5
This commit is contained in:
Jimmy McCrory 2017-06-01 14:17:04 -07:00
parent 664d6db044
commit 1986b06d8f

View File

@ -183,6 +183,12 @@ if [[ "${ACTION}" == "upgrade" ]]; then
unset ANSIBLE_PACKAGE
unset UPPER_CONSTRAINTS_FILE
# Unset environment variables used by the override_folder
# plugin to set paths for group and host vars since the
# default locations have changed between Ocata and Pike.
unset GROUP_VARS_PATH
unset HOST_VARS_PATH
# To execute the upgrade script we need to provide
# an affirmative response to the warning that the
# upgrade is irreversable.