Skip to content

Commit

Permalink
Only syntax check the managed file
Browse files Browse the repository at this point in the history
  • Loading branch information
sudodevnull authored Aug 7, 2023
1 parent 821cbc7 commit dc43675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/conf.pp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
}

exec { "sudo-syntax-check for file ${cur_file}":
command => "visudo -c || ${delete_cmd}",
command => "visudo -c -f ${cur_file_real} || ${delete_cmd}",
refreshonly => true,
path => $sudo_syntax_path,
}
Expand Down

0 comments on commit dc43675

Please sign in to comment.