From b3e553e27f9551271fe62719dd1ab0e6cbe723de Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 5 Jan 2013 00:00:28 +0100 Subject: do match to make it more flexible --- 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 a67238e..d3d94b0 100644 --- a/templates/remote_host.erb +++ b/templates/remote_host.erb @@ -1,5 +1,5 @@ # host <%= name %> -<% if scope.lookupvar('::fqdn') != left_id -%> +<% if !(left_id =~ scope.lookupvar('::fqdn')) -%> conn <%= name %> <% if left_ip_address != 'absent' -%> left=<%= left_ip_address %> -- cgit v1.2.3