Skip to content

Commit

Permalink
Avoid 'cant concat list string' error
Browse files Browse the repository at this point in the history
  • Loading branch information
ferricoxide committed Jul 10, 2024
1 parent b0add0b commit d5aa920
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
] %}
{%- set optionsDir = '/etc/systemd/system/tmp.mount.d' %}
{%- set optionsFile = optionsDir + '/options.conf' %}
{%- set combinedOpts = mountOptsDefault + mountOptsStig %}

{{ stig_id }}-description:
test.show_notification:
Expand All @@ -150,7 +151,7 @@ Manage {{ optionsFile }} ({{ stig_id }}):
- name: '{{ optionsFile }}'
- contents: |
[Mount]
Options={{ mountOptsDefault + mountOptsStig | unique | join(',') }}
Options={{ combinedOpts | unique | join(',') }}
- dir_mode: '0755'
- group: 'root'
- makedirs: True
Expand Down

0 comments on commit d5aa920

Please sign in to comment.