Allow to run tests outside openstack infra

The task run un-conditionally and the shell script
just echo empty strings which are then used for
ALL the deploys, breaking up deployments with wrong
repo urls.

Change-Id: Ia42a400a7729efa7e6b564c83d2de047a4f26887
This commit is contained in:
Jean-Philippe Evrard 2018-03-23 15:56:01 +00:00
parent 4a795e649f
commit 17439c210c

View File

@ -13,6 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Ensure ci data exists before setting variables.
stat:
path: /etc/ci/mirror_info.sh
register: ci_mirror_info
- name: Set nodepool vars
block:
- name: Discover variables from OpenStack's CI environment when in nodepool
shell: |
source /etc/ci/mirror_info.sh
@ -49,3 +56,4 @@
pip_links:
- name: "infra_wheel_mirror"
link: "{{ pip_wheel_mirror }}"
when: ci_mirror_info.stat.exists