diff --git a/scripts/gate-check-commit.sh b/scripts/gate-check-commit.sh index b25d3b3f43..d1a12a4fa0 100755 --- a/scripts/gate-check-commit.sh +++ b/scripts/gate-check-commit.sh @@ -56,7 +56,7 @@ mkdir -p /openstack/log/ansible-logging sed -i '/\[defaults\]/a log_path = /openstack/log/ansible-logging/ansible.log' $(dirname ${0})/../playbooks/ansible.cfg # Adjust settings based on the Cloud Provider info in OpenStack-CI -if [ -fs /etc/nodepool/provider ]; then +if [ -f /etc/nodepool/provider -a -s /etc/nodepool/provider ]; then source /etc/nodepool/provider if [[ ${NODEPOOL_PROVIDER} == "rax"* ]]; then