Skip to content

Commit 33fa205

Browse files
committed
Check if updating service is present in update services list
1 parent 12967db commit 33fa205

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

controls/roles/update-services/tasks/update-service.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
- name: Check service is in update list
1313
set_fact:
14-
service_exists: true
15-
when: service_configuration.service in update_data[service_configuration.network]
14+
service_exists: "{{ service_configuration.service in update_data[service_configuration.network] | default({}) }}"
1615

1716
- name: Extract docker image and version
1817
set_fact:

0 commit comments

Comments
 (0)