Try an other approach to check if dir exist

This commit is contained in:
Magnus Andersson 2024-01-24 17:28:10 +01:00
parent 95eaa192ba
commit 83df7a7757
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -63,7 +63,7 @@ class podmanrunner::runner (
mode => '0400',
}
unless File["/opt/${username}${x}/runnerdata"] {
unless find_file("/opt/${username}${x}/runnerdata") {
file { "/opt/${username}${x}/runnerdata":
ensure => directory,
mode => '0700',