Add variable project_version to horizon_translations_update

this will support to pull different versions from zanata instead
only master.
Patch is related to https://review.openstack.org/#/c/545276/

Change-Id: I61209ad3dc785e8134ef09b934ba9800c3d436f1
This commit is contained in:
Frank Kloeker 2018-02-16 13:58:46 +01:00
parent 7e66cf4e75
commit 08c45ef3ee
2 changed files with 6 additions and 1 deletions

View File

@ -323,6 +323,11 @@ horizon_optional_pip_packages: []
# but should otherwise be left as False.
horizon_translations_update: False
# This variable is used to define the version of the project
# (horizon) to pull from Zanata. Default value is master,
# other possibly values are stable/pike, stable/queens...
horizon_translations_project_version: master
# This variable is used by the repo_build process to determine
# which host group to check for members of before building the
# pip packages required by this role. The value is picked up

View File

@ -14,7 +14,7 @@
# limitations under the License.
- name: Perform a Horizon Zanata Pull Catalog
command: "{{ horizon_bin }}/horizon-manage.py pull_catalog"
command: "{{ horizon_bin }}/horizon-manage.py pull_catalog -v {{ horizon_translations_project_version | replace('/', '-') }}"
args:
chdir: "{{ horizon_lib_dir }}/"
changed_when: false