From d0d6b12865cbcbfc851c722090ed8ff894f3d42f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 11 Oct 2019 11:27:58 +0200 Subject: [PATCH] config/module: avoid double-slash for system=false Without this patch, it would use `modules//myns/main` instead of `modules/myns/main`. This is just a cosmetic fix. --- manifests/config/module.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/config/module.pp b/manifests/config/module.pp index 5e8ee4fc..19561830 100644 --- a/manifests/config/module.pp +++ b/manifests/config/module.pp @@ -18,7 +18,7 @@ $namespace_path = regsubst($title, '[.]', '/', 'G') if $system { - $module_dir = 'system/layers/base' + $module_dir = 'system/layers/base/' } File { @@ -26,7 +26,7 @@ group => $wildfly::group } - $dir_path = "${wildfly::dirname}/modules/${module_dir}/${namespace_path}/main" + $dir_path = "${wildfly::dirname}/modules/${module_dir}${namespace_path}/main" exec { "Create Parent Directories: ${title}": path => ['/bin','/usr/bin', '/sbin'],