From 83df7a7757737597e633305eafa86a54a451da79 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Wed, 24 Jan 2024 17:28:10 +0100 Subject: [PATCH] Try an other approach to check if dir exist --- manifests/runner.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/runner.pp b/manifests/runner.pp index d2a4ad3..0c3b0f9 100644 --- a/manifests/runner.pp +++ b/manifests/runner.pp @@ -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',