From b415a8bf43114df14832a3fe31ad69492eb49274 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 3 Jan 2015 22:05:43 +0100 Subject: [PATCH] correct regexp --- manifests/instance.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/instance.pp b/manifests/instance.pp index b55ce7e..de27bd1 100644 --- a/manifests/instance.pp +++ b/manifests/instance.pp @@ -91,7 +91,7 @@ define tinc::instance( if $tinc_address { $host_address = $tinc_address } else { - $int_name_escaped = regsubst($tinc_interface,'.','_','G') + $int_name_escaped = regsubst($tinc_interface,'\.','_','G') $host_address = getvar("::ipaddress_${int_name_escaped}") }