Skip to content

Commit c15dc5d

Browse files
authored
Make organization and notification_type not mandatory to match module documentation in notification_template (#1006)
* Fix loop label in controller_execution_environments * Make organization and notification_type not mandatory to match module documentation These are not mandatory if setting state: absent for removal, so do not make them mandatory in this role
1 parent 5c7490b commit c15dc5d

File tree

1 file changed

+2
-2
lines changed
  • roles/controller_notification_templates/tasks

1 file changed

+2
-2
lines changed

roles/controller_notification_templates/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
new_name: "{{ __controller_notification_item.new_name | default(omit, true) }}"
66
copy_from: "{{ __controller_notification_item.copy_from | default(omit, true) }}"
77
description: "{{ __controller_notification_item.description | default(('' if controller_configuration_notifications_enforce_defaults else omit), true) }}"
8-
organization: "{{ __controller_notification_item.organization.name | default(__controller_notification_item.organization) | mandatory }}"
9-
notification_type: "{{ __controller_notification_item.notification_type | default(omit, true) | mandatory }}"
8+
organization: "{{ __controller_notification_item.organization.name | default(__controller_notification_item.organization) | default(omit, true) }}"
9+
notification_type: "{{ __controller_notification_item.notification_type | default(omit, true) }}"
1010
notification_configuration: "{{ __controller_notification_item.notification_configuration | default(({} if controller_configuration_notifications_enforce_defaults else omit), true) }}"
1111
messages: "{{ __controller_notification_item.messages | default(({} if controller_configuration_notifications_enforce_defaults else omit), true) | regex_replace('{ {', '{_~~remove~~_{') | regex_replace('_~~remove~~_', '') }}"
1212
state: "{{ __controller_notification_item.state | default(platform_state | default('present')) }}"

0 commit comments

Comments
 (0)