Merge "Respect OSA_USER_RC for add-compute.sh"

This commit is contained in:
Zuul
2025-08-15 14:34:12 +00:00
committed by Gerrit Code Review

View File

@@ -15,8 +15,15 @@
# limitations under the License.
export OSA_REPO_PATH=${OSA_REPO_PATH:-"/opt/openstack-ansible"}
export OSA_CONFIG_DIR=${OSA_CONFIG_DIR:-"/etc/openstack_deploy"}
export HOSTS=${1:-""}
export OSA_USER_RC=${OSA_USER_RC:-${OSA_CONFIG_DIR}/user.rc}
if [[ -f ${OSA_USER_RC} ]]; then
. ${OSA_USER_RC}
fi
function define_tasks {
if [[ ! -z ${PRE_OSA_TASKS} ]]; then