Ensure that Trusty checks run for the security role

Change-Id: I310ea2687bf1e1873f6918aab6b08b3489303ab2
This commit is contained in:
Jesse Pretorius 2017-02-09 16:29:22 +00:00
parent 7698aebf69
commit cede471b7f
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ function gate_job_exit_tasks {
source /etc/os-release 2>/dev/null
export DISTRO_ID="${ID}"
export DISTRO_VERSION_ID="${VERSION_ID}"
if [[ "${DISTRO_ID}" == 'ubuntu' ]] && [[ "${DISTRO_VERSION_ID}" == '14.04' ]]; then
if [[ "${ROLE_NAME}" != "openstack-ansible-security" ]] && [[ "${DISTRO_ID}" == 'ubuntu' ]] && [[ "${DISTRO_VERSION_ID}" == '14.04' ]]; then
echo "Ubuntu Trusty detected. Exiting without running the job."
exit 0
fi