mirror of
https://github.com/ansible/awx.git
synced 2026-01-27 08:31:28 -03:30
Parse the mercurial revision correctly in setup playbook
Originally the value was coming out as: xxxxxx default tip When we want xxxxxx In order for the subsequent revision request to work correctly
This commit is contained in:
parent
886e96dea9
commit
03593b957b
@ -160,6 +160,11 @@
|
||||
scm_version: "{{scm_version|regex_replace('^.*Revision: ([0-9]+).*$', '\\1')}}"
|
||||
when: scm_type == 'svn'
|
||||
|
||||
- name: parse hg version string properly
|
||||
set_fact:
|
||||
scm_version: "{{scm_version|regex_replace('^([A-Za-z0-9]+).*$', '\\1')}}"
|
||||
when: scm_type == 'hg'
|
||||
|
||||
- name: Repository Version
|
||||
debug: msg="Repository Version {{ scm_version }}"
|
||||
when: scm_version is defined
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user