get-ansible-role-requirements: Use refspec when outside of OpenStack CI
This is a fixup for a6e2e511a47e("Use refspec to try Gerrit changes"). We also need to take the refspec parameter into consideration when cloning repositories outside of OpenStack CI. This will facilitate manual testing. Change-Id: Ie96eb6dcd14cfec8c2b3813fbd67eef441178cdb
This commit is contained in:
parent
9db790cf52
commit
2dac764ac9
@ -66,6 +66,7 @@
|
|||||||
repo: "{{ item['src'] }}"
|
repo: "{{ item['src'] }}"
|
||||||
dest: "{{ lookup('env', 'ANSIBLE_ROLE_DEP_DIR') }}/{{ item['name'] | default(item['src'] | basename) }}"
|
dest: "{{ lookup('env', 'ANSIBLE_ROLE_DEP_DIR') }}/{{ item['name'] | default(item['src'] | basename) }}"
|
||||||
version: "{{ item['version'] | default('master') }}"
|
version: "{{ item['version'] | default('master') }}"
|
||||||
|
refspec: "{{ item['refspec'] | default(omit) }}"
|
||||||
depth: "{{ item['depth'] | default('10') }}"
|
depth: "{{ item['depth'] | default('10') }}"
|
||||||
update: true
|
update: true
|
||||||
force: true
|
force: true
|
||||||
|
Loading…
Reference in New Issue
Block a user