From ae0c277e5c540f5904a91f5382c931bdab414891 Mon Sep 17 00:00:00 2001 From: Soniya Vyas Date: Thu, 16 May 2024 16:55:04 +0530 Subject: [PATCH] Updated the "update test runs task" 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. --- roles/polarion/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/polarion/tasks/main.yml b/roles/polarion/tasks/main.yml index c9c46220cc..b0d8f5db5d 100644 --- a/roles/polarion/tasks/main.yml +++ b/roles/polarion/tasks/main.yml @@ -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