summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-01-05 00:03:06 +0100
committermh <mh@immerda.ch>2013-01-05 00:03:06 +0100
commitf509d9ab85e76e5b9e8d25dcf7d39ff1c1e24c67 (patch)
tree8d55672a6eab5a47c301cf61fe1b1e21424b053f
parentb3e553e27f9551271fe62719dd1ab0e6cbe723de (diff)
correct matching
-rw-r--r--templates/remote_host.erb2
1 files changed, 1 insertions, 1 deletions
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 %>