Follow up on Ansible version checking
The bash part of version checking fails when ANSIBLE_DEBUG is set while running kolla-ansible, so need to skip it. Change-Id: I4adc986365c4b0c11eb69e128eb7d037a24a2baf
This commit is contained in:
parent
6d95d1a29b
commit
7b0022b957
@ -5,7 +5,7 @@
|
||||
function check_ansible_compatibility {
|
||||
ANSIBLE_VERSION_MIN=2.8
|
||||
ANSIBLE_VERSION_MAX=2.9
|
||||
ANSIBLE_VERSION_HOST=$(ansible --version | head -n1 | egrep -o '[0-9]\.[0-9]+')
|
||||
ANSIBLE_VERSION_HOST=$(ANSIBLE_DEBUG=0 ansible --version | head -n1 | egrep -o '[0-9]\.[0-9]+')
|
||||
|
||||
if [[ $(printf "%s\n" "$ANSIBLE_VERSION_MIN" "$ANSIBLE_VERSION_MAX" "$ANSIBLE_VERSION_HOST" | sort -V | head -n1) != "$ANSIBLE_VERSION_MIN" ]] ||
|
||||
[[ $(printf "%s\n" "$ANSIBLE_VERSION_MIN" "$ANSIBLE_VERSION_MAX" "$ANSIBLE_VERSION_HOST" | sort -V | tail -1) != "$ANSIBLE_VERSION_MAX" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user