Skip to content

Commit

Permalink
set default to empty hash for dotnet_options
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyc-splunk committed Nov 27, 2023
1 parent d095495 commit a509a24
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
{%- set value = (method + "," + signalfx_dotnet_auto_instrumentation_global_tags) | trim(",") -%}
{%- endif -%}
{{ (options_list | default([])) + [item.key + '=' + (value | string)] }}
loop: "{{ dotnet_options | combine(signalfx_dotnet_auto_instrumentation_additional_options) | dict2items }}"
loop: >
{{ dotnet_options | default({}) | combine(signalfx_dotnet_auto_instrumentation_additional_options) | dict2items }}
- name: Set IIS registry value
ansible.windows.win_regedit:
Expand Down Expand Up @@ -116,6 +117,7 @@
{%- endif -%}
{{ value | string }}
type: string
loop: "{{ dotnet_options | combine(signalfx_dotnet_auto_instrumentation_additional_options) | dict2items }}"
loop: >
{{ dotnet_options | default({}) | combine(signalfx_dotnet_auto_instrumentation_additional_options) | dict2items }}
when: signalfx_dotnet_auto_instrumentation_system_wide
notify: "reset iis"

0 comments on commit a509a24

Please sign in to comment.