From 91e32438710319bc6392122c99142f01cf40aa7a Mon Sep 17 00:00:00 2001 From: Nomen Nescio Date: Thu, 2 Jan 2025 18:55:47 +0100 Subject: [PATCH] remove deprecated validate_ functions --- manifests/mroute.pp | 5 +---- manifests/mroute/validate_gw.pp | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/manifests/mroute.pp b/manifests/mroute.pp index 0ea495c..465af4c 100644 --- a/manifests/mroute.pp +++ b/manifests/mroute.pp @@ -72,7 +72,7 @@ # Deploys the file /etc/sysconfig/network/ifroute-$name. # define network::mroute ( - $routes, + Hash $routes, $interface = $name, $config_file_notify = 'class_default', $restart_all_nic = false, @@ -82,9 +82,6 @@ $route_down_template = undef, $table = undef, ) { - # Validate our arrays - validate_hash($routes) - include network $real_reload_command = $reload_command ? { undef => $facts['os']['name'] ? { diff --git a/manifests/mroute/validate_gw.pp b/manifests/mroute/validate_gw.pp index daa44b8..7165061 100644 --- a/manifests/mroute/validate_gw.pp +++ b/manifests/mroute/validate_gw.pp @@ -1,6 +1,5 @@ # GWs validator. We need it to have compatibility with puppet 3.x, 'cause it doesn't support each. # define network::mroute::validate_gw ($routes) { - $route = $routes[$name] - validate_string($route) + String $route = $routes[$name] }