Skip to content

Commit

Permalink
Fixed two closing double-quote positions.
Browse files Browse the repository at this point in the history
  • Loading branch information
nhosoi committed Jan 18, 2022
1 parent d021b38 commit 118fd30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/rsyslog/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
shell: |-
set -euo pipefail
for conf in $( ls "{{ __rsyslog_config_dir }}" ); do
rstr=$( rpm -qf "{{ __rsyslog_config_dir }}"/$conf 2>&1 || : )
rstr=$( rpm -qf "{{ __rsyslog_config_dir }}/$conf" 2>&1 || : )
if [[ $rstr == *"not owned by any package"* ]]; then
# confs generated by the logging role do not belong to
# any rpm packages.
/usr/bin/rm -f "{{ __rsyslog_config_dir }}"/$conf
/usr/bin/rm -f "{{ __rsyslog_config_dir }}/$conf"
fi
done
when: logging_purge_confs | bool | d(false)
Expand Down

0 comments on commit 118fd30

Please sign in to comment.