From f509d9ab85e76e5b9e8d25dcf7d39ff1c1e24c67 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 5 Jan 2013 00:03:06 +0100 Subject: correct matching --- templates/remote_host.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/remote_host.erb b/templates/remote_host.erb index d3d94b0..3926b76 100644 --- a/templates/remote_host.erb +++ b/templates/remote_host.erb @@ -1,5 +1,5 @@ # host <%= name %> -<% if !(left_id =~ scope.lookupvar('::fqdn')) -%> +<% if !(left_id =~ /#{scope.lookupvar('::fqdn')}/) -%> conn <%= name %> <% if left_ip_address != 'absent' -%> left=<%= left_ip_address %> -- cgit v1.2.3