From a82c43ecfcf181ea3e136bcd7b2dd2ca777743c0 Mon Sep 17 00:00:00 2001 From: Matthias Baur Date: Fri, 26 Oct 2018 10:44:05 +0200 Subject: [PATCH] Replace is_ipv6_address with Puppet 4 native comparision --- manifests/install/rabbitmqadmin.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/install/rabbitmqadmin.pp b/manifests/install/rabbitmqadmin.pp index 408d2a1a0..996f087bc 100644 --- a/manifests/install/rabbitmqadmin.pp +++ b/manifests/install/rabbitmqadmin.pp @@ -34,7 +34,7 @@ # Pull from localhost if we don't have an explicit bind address $curl_prefix = '' $sanitized_ip = '127.0.0.1' - } elsif is_ipv6_address($management_ip_address) { + } elsif $management_ip_address =~ Stdlib::Compat::Ipv6 { $curl_prefix = "--noproxy ${management_ip_address} -g -6" $sanitized_ip = join(enclose_ipv6(any2array($management_ip_address)), ',') } else {