From 3ad32c32c2888689479915b0c26cc2556d110cdf Mon Sep 17 00:00:00 2001 From: John Stewart Date: Fri, 15 Mar 2024 02:23:03 -0400 Subject: [PATCH] fix(deprecated stdlib functions): replace with validate_legacy equivalents --- manifests/init.pp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 302904c..9f7d2e4 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -51,19 +51,19 @@ $urllist = [], ) { - validate_bool($manage_config) - validate_bool($manage_package) - validate_string($installdirs) - validate_bool($local_lib) - validate_string($config_template) - validate_string($package_ensure) + validate_legacy(Boolean, 'validate_bool', $manage_config) + validate_legacy(Boolean, 'validate_bool', $manage_package) + validate_legacy(String, 'validate_string', $installdirs) + validate_legacy(Boolean, 'validate_bool', $local_lib) + validate_legacy(String, 'validate_string', $config_template) + validate_legacy(String, 'validate_string', $package_ensure) if $ftp_proxy { - validate_string($ftp_proxy) + validate_legacy(String, 'validate_string', $ftp_proxy) } if $http_proxy { - validate_string($http_proxy) + validate_legacy(String, 'validate_string', $http_proxy) } - validate_array($urllist) + validate_legacy(Array, 'validate_array', $urllist) anchor { 'cpan::begin': } -> class { '::cpan::install': }