diff --git a/scripts/get-ansible-collection-requirements.yml b/scripts/get-ansible-collection-requirements.yml index 83ab191428..b56bd7ee9e 100644 --- a/scripts/get-ansible-collection-requirements.yml +++ b/scripts/get-ansible-collection-requirements.yml @@ -49,7 +49,7 @@ - name: Check the Zuul src dir for cloned collections stat: - path: "{{ zuul_src_path }}/{{ item.source.split('/')[-3:] | join('/') }}" + path: "{{ zuul_src_path }}/{{ item.source.split('/')[2:] | join('/') | split('#') | first }}" get_attributes: no get_checksum: no get_mime: no @@ -60,7 +60,7 @@ vars: zuul_item: name: "{{ item.item.name }}" - source: "{{ zuul_src_path }}/{{ item.item.source.split('/')[-3:] | join('/') }}" + source: "{{ zuul_src_path }}/{{ item.item.source.split('/')[2:] | join('/') | replace('#', '') }}" type: "dir" set_fact: galaxy_collections_list_ci: "{{ galaxy_collections_list_ci | default([]) + [ (item.stat.exists | ternary(zuul_item, item.item)) ] }}"