Skip to content
Snippets Groups Projects
Commit 73cb007a authored by Will Szumski's avatar Will Szumski Committed by Pierre Riteau
Browse files

Do not fail when admin openrc file does not exist

Change-Id: If89bb28fa2e8cc615da21893201cc438d5b6ff05
Story: 2009323
Task: 43745
parent 4028a56f
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,10 @@
slurp:
src: "{{ kolla_config_path }}/admin-openrc.sh"
register: admin_openrc
when: (kolla_config_path ~ '/admin-openrc.sh') is exists
- name: Ensure a public OpenStack API environment file exists
template:
src: public-openrc.sh.j2
dest: "{{ public_openrc_kolla_config_path }}/public-openrc.sh"
when: admin_openrc is not skipped
---
fixes:
- |
``public-openrc.sh`` is now only generated if the ``admin-openrc.sh`` file
generated by Kolla Ansible exists. This fixes an issue where the task would
fail, when running in a clean environment, with a set of Kolla Ansible tags
that did not include the generation of ``admin-openrc.sh``. See `story
2009323 <https://storyboard.openstack.org/#!/story/2009323>`__.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment