Skip to content

Commit

Permalink
Updated the "update test runs task"
Browse files Browse the repository at this point in the history
The task is encountering an issue because
it expects a list of objects with a path
attribute, but instead, it is receiving a
string.
The map(attribute='path') filter is being
applied to a string, which causes the error.

To resolve this, ensure that xml_files.files
is a list of dictionaries, each containing a path key.
  • Loading branch information
son-vyas committed May 16, 2024
1 parent e73daa0 commit ae0c277
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/polarion/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@
source "{{ cifmw_polarion_jump_repo_dir }}/jump-venv/bin/activate" &&
{{ cifmw_polarion_jump_repo_dir }}/jump-venv/bin/python jump.py
--testrun-id={{ cifmw_polarion_testrun_id }}
--xml-file={{ item.path | map(attribute='path') }}
--xml-file={{ item.path }}
--update_testcases={{ cifmw_polarion_update_testcases | default(false) }}
{{ cifmw_polarion_jump_extra_vars | default ('') }}
loop: "{{ xml_files.files }}"
when: item.path is defined
register: jump_script

- name: Output of jump
Expand Down

0 comments on commit ae0c277

Please sign in to comment.