From c465d336ec5ccd70133c7e909f5e1272ed62b5d6 Mon Sep 17 00:00:00 2001 From: Yan Zhan Date: Wed, 5 Jun 2024 15:05:31 -0500 Subject: [PATCH] make xdmod_export::token optional --- manifests/xdmod_export.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/xdmod_export.pp b/manifests/xdmod_export.pp index 7b8d21e..14d2be9 100644 --- a/manifests/xdmod_export.pp +++ b/manifests/xdmod_export.pp @@ -8,10 +8,12 @@ # class profile_ondemand::xdmod_export ( Boolean $enable_xdmod_export = false, - String $token, + Optional[String] $token, ) { if $enable_xdmod_export { + assert_type(String[1], $token) + user { 'xdmod-ondemand-export': shell => '/bin/false', managehome => true,