Skip to content

Commit

Permalink
Fix(eos_designs, eos_cli_config_gen): Fix the AVD version print in vi…
Browse files Browse the repository at this point in the history
…rtual environments (#1876)
  • Loading branch information
tgodaA authored Jun 15, 2022
1 parent b2c21ef commit 16bc968
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set_fact:
avd_collection_version: version
vars:
versions: "{{ lookup('pipe', 'ansible-galaxy collection list --format yaml ' ~ ansible_collection_name) | from_yaml }}"
versions: "{{ lookup('pipe', 'ansible-galaxy collection list -p ' ~ collection_path ~ ' --format yaml ' ~ ansible_collection_name) | from_yaml }}"
collection_path: "{{ (role_path | split('/'))[0:-4] | join('/') }}"
version: "{{ versions[collection_path][ansible_collection_name].version | default('Unknown') }}"
git_tag: "{{ lookup('pipe', 'git -C ' ~ collection_path ~ ' describe --tags --always 2>/dev/null', errors='ignore') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set_fact:
avd_collection_version: version
vars:
versions: "{{ lookup('pipe', 'ansible-galaxy collection list --format yaml ' ~ ansible_collection_name) | from_yaml }}"
versions: "{{ lookup('pipe', 'ansible-galaxy collection list -p ' ~ collection_path ~ ' --format yaml ' ~ ansible_collection_name) | from_yaml }}"
collection_path: "{{ (role_path | split('/'))[0:-4] | join('/') }}"
version: "{{ versions[collection_path][ansible_collection_name].version | default('Unknown') }}"
git_tag: "{{ lookup('pipe', 'git -C ' ~ collection_path ~ ' describe --tags --always 2>/dev/null', errors='ignore') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set_fact:
avd_collection_version: version
vars:
versions: "{{ lookup('pipe', 'ansible-galaxy collection list --format yaml ' ~ ansible_collection_name) | from_yaml }}"
versions: "{{ lookup('pipe', 'ansible-galaxy collection list -p ' ~ collection_path ~ ' --format yaml ' ~ ansible_collection_name) | from_yaml }}"
collection_path: "{{ (role_path | split('/'))[0:-4] | join('/') }}"
version: "{{ versions[collection_path][ansible_collection_name].version | default('Unknown') }}"
git_tag: "{{ lookup('pipe', 'git -C ' ~ collection_path ~ ' describe --tags --always 2>/dev/null', errors='ignore') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set_fact:
avd_collection_version: version
vars:
versions: "{{ lookup('pipe', 'ansible-galaxy collection list --format yaml ' ~ ansible_collection_name) | from_yaml }}"
versions: "{{ lookup('pipe', 'ansible-galaxy collection list -p ' ~ collection_path ~ ' --format yaml ' ~ ansible_collection_name) | from_yaml }}"
collection_path: "{{ (role_path | split('/'))[0:-4] | join('/') }}"
version: "{{ versions[collection_path][ansible_collection_name].version | default('Unknown') }}"
git_tag: "{{ lookup('pipe', 'git -C ' ~ collection_path ~ ' describe --tags --always 2>/dev/null', errors='ignore') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ansible.builtin.set_fact:
avd_collection_version: version
vars:
versions: "{{ lookup('pipe', 'ansible-galaxy collection list --format yaml ' ~ ansible_collection_name) | from_yaml }}"
versions: "{{ lookup('pipe', 'ansible-galaxy collection list -p ' ~ collection_path ~ ' --format yaml ' ~ ansible_collection_name) | from_yaml }}"
collection_path: "{{ (role_path | split('/'))[0:-4] | join('/') }}"
version: "{{ versions[collection_path][ansible_collection_name].version | default('Unknown') }}"
git_tag: "{{ lookup('pipe', 'git -C ' ~ collection_path ~ ' describe --tags --always 2>/dev/null', errors='ignore') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
set_fact:
avd_collection_version: version
vars:
versions: "{{ lookup('pipe', 'ansible-galaxy collection list --format yaml ' ~ ansible_collection_name) | from_yaml }}"
versions: "{{ lookup('pipe', 'ansible-galaxy collection list -p ' ~ collection_path ~ ' --format yaml ' ~ ansible_collection_name) | from_yaml }}"
collection_path: "{{ (role_path | split('/'))[0:-4] | join('/') }}"
version: "{{ versions[collection_path][ansible_collection_name].version | default('Unknown') }}"
git_tag: "{{ lookup('pipe', 'git -C ' ~ collection_path ~ ' describe --tags --always 2>/dev/null', errors='ignore') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set_fact:
avd_collection_version: version
vars:
versions: "{{ lookup('pipe', 'ansible-galaxy collection list --format yaml ' ~ ansible_collection_name) | from_yaml }}"
versions: "{{ lookup('pipe', 'ansible-galaxy collection list -p ' ~ collection_path ~ ' --format yaml ' ~ ansible_collection_name) | from_yaml }}"
collection_path: "{{ (role_path | split('/'))[0:-4] | join('/') }}"
version: "{{ versions[collection_path][ansible_collection_name].version | default('Unknown') }}"
git_tag: "{{ lookup('pipe', 'git -C ' ~ collection_path ~ ' describe --tags --always 2>/dev/null', errors='ignore') }}"
Expand Down

0 comments on commit 16bc968

Please sign in to comment.