Skip to content

Commit

Permalink
Try to correct unsafe_interpolations lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Riehecky committed Aug 25, 2023
1 parent c36c053 commit 1a97f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@

if $default_zone {
exec { 'firewalld::set_default_zone':
command => "firewall-cmd --set-default-zone ${default_zone} || firewall-offline-cmd --set-default-zone ${default_zone}",
command => ['firewall-cmd --set-default-zone ', $default_zone, ' || firewall-offline-cmd --set-default-zone ', $default_zone],
unless => "[ $(firewall-cmd --get-default-zone || firewall-offline-cmd --get-default-zone) = ${default_zone} ]",
require => Service['firewalld'],
}
Expand All @@ -185,7 +185,7 @@

if $log_denied {
exec { 'firewalld::set_log_denied':
command => "firewall-cmd --set-log-denied ${log_denied} || firewall-offline-cmd --set-log-denied ${log_denied}",
command => ['firewall-cmd --set-log-denied ', $log_denied, ' || firewall-offline-cmd --set-log-denied ', $log_denied],
unless => "[ $(firewall-cmd --get-log-denied || firewall-offline-cmd --get-log-denied) = ${log_denied} ]",
require => Service['firewalld'],
}
Expand Down

0 comments on commit 1a97f62

Please sign in to comment.