Skip to content

Commit 2d19df9

Browse files
okopopokopop
and
okopop
authored
Purge and Recurse should be set together (#399)
If you for whatever reason decide to change the value of purge, recurse should change with it. This is nothing new and the solution as it's implemented here is the same I have seen in other popular modules (saz-sudo, ghoneycutt-ssh) regarding the relation between purge and recurse. If you don't you can get unexpected behaviour. Related to #390 Co-authored-by: okopop <[email protected]>
1 parent 2b5a2a4 commit 2d19df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/server/config.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
group => 0,
5656
mode => $ssh::server::include_dir_mode,
5757
purge => $ssh::server::include_dir_purge,
58-
recurse => true,
58+
recurse => $ssh::server::include_dir_purge,
5959
}
6060

6161
$ssh::server::config_files.each |$file, $params| {

0 commit comments

Comments
 (0)