diff options
author | mh <mh@immerda.ch> | 2013-01-05 00:00:28 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2013-01-05 00:00:28 +0100 |
commit | b3e553e27f9551271fe62719dd1ab0e6cbe723de (patch) | |
tree | 1275ee14561235e409d1a88d86f20a5f3bdb4682 | |
parent | 1a0c8404d34ed376f18f3df2c0e83ee67931b783 (diff) |
do match to make it more flexible
-rw-r--r-- | templates/remote_host.erb | 2 |
1 files changed, 1 insertions, 1 deletions
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 %> |