Skip to content

Commit

Permalink
minor fixes in test
Browse files Browse the repository at this point in the history
  • Loading branch information
george-ghawali committed Jan 21, 2025
1 parent b4167ed commit ecebbd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@
ansible.builtin.set_fact:
backup_target_cluster_ext_id: >-
{{ backup_result.response
| selectattr('location.config.ext_id', 'equalto', cluster.uuid)
| selectattr('location', 'defined')
| selectattr('location.config', 'defined')
| selectattr('location.config.ext_id', 'equalto', cluster.uuid | default(''))
| map(attribute='ext_id')
| list }}
when:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
ansible.builtin.set_fact:
backup_target_object_store_ext_id: >-
{{ backup_result.response
| selectattr('location', 'defined')
| selectattr('location.provider_config', 'defined')
| selectattr('location.provider_config.bucket_name', 'defined')
| map(attribute='ext_id')
| list }}
Expand Down

0 comments on commit ecebbd0

Please sign in to comment.