summaryrefslogtreecommitdiff
path: root/templates/client.erb
diff options
context:
space:
mode:
authorArjen Heidinga <dexter@beetjevreemd.nl>2014-01-31 09:52:10 +0100
committermh <mh@immerda.ch>2014-02-03 14:54:50 +0100
commit695d81c81cd152b5dd7333d0eae2bd6df108a41e (patch)
tree79d41aad7774dda2c739bb0a6938dcb8d7878aa7 /templates/client.erb
parent0ebbe54879941e886dc1519b7dfdc69f614975ad (diff)
Add support for setting the descryption and group support
Diffstat (limited to 'templates/client.erb')
-rw-r--r--templates/client.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/client.erb b/templates/client.erb
index 83d5a64..5741701 100644
--- a/templates/client.erb
+++ b/templates/client.erb
@@ -9,9 +9,9 @@
# Registered on: <%= @h %>
# Type: <%= @client_type %>
<% if @description != 'absent' -%>
-# Description: <%= @description.gsub!(/\n/, ' ') %>
+# Description: <%= @description.gsub(/\n/, ' ') %>
<% end -%>
-[<%= @fhost.downcase %>]
+[<% if @group != 'absent' -%><%= @group %>;<% end -%><%= @fhost.downcase %>]
<% if @use_ssh -%>
address ssh://<%= @host %>/bin/nc localhost <%= @port %>
<% else -%>