Skip to content

Commit f7dbe46

Browse files
authored
Merge pull request #224 from stackhpc/fix/hpctests-partitions-jinja
Workaround awx-ee jinja's trim filter not taking the char to trim
2 parents 9a6e0c3 + 9e4379e commit f7dbe46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/roles/hpctests/tasks/setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
- name: Select default partition if hpctests_partition not given
99
set_fact:
10-
hpctests_partition: "{{ _sinfo_partitions.stdout_lines | select('contains', '*') | first | trim('*') }}"
10+
hpctests_partition: "{{ (_sinfo_partitions.stdout_lines | select('contains', '*') | first)[:-1] }}"
1111
when: hpctests_partition is not defined
1212

1313
- name: Get info about compute nodes

0 commit comments

Comments
 (0)