Set a default for upper_constraints_check.status
On occasion the Ansible URI module may not return a status key, so this patch ensures that even if it doesn't there will still be a value of '503' which translates into a 'Service Unavailable' error. Change-Id: Ie944152f56bd5c68cfd80d406cf4175e9723c8f6
This commit is contained in:
parent
bb78b911e7
commit
2fe2267361
@ -29,4 +29,4 @@
|
||||
set_fact:
|
||||
pip_install_upper_constraints: >-
|
||||
http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?id={{ requirements_git_install_branch | regex_replace(' #.*$','') }}
|
||||
when: upper_constraints_check.status != 200
|
||||
when: (upper_constraints_check.status | default(503)) != 200
|
||||
|
Loading…
Reference in New Issue
Block a user