Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
bschonec committed May 20, 2024
1 parent 0e69986 commit b2e91e8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions manifests/functions/create_export.pp
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@

# Create the directory path only if a File resource isn't
# defined previously AND the $create_dir boolean is true.
unless defined(File[$name]) and $create_dir {
filepath { $name:
ensure => present,
owner => $owner,
group => $group,
mode => $mode,
unless defined(File[$name]) {
if $create_dir {
filepath { $name:
ensure => present,
owner => $owner,
group => $group,
mode => $mode,
}
}
}
}
Expand Down

0 comments on commit b2e91e8

Please sign in to comment.