Skip to content

Commit

Permalink
Merge pull request #3 from liquidtyde/addkeys
Browse files Browse the repository at this point in the history
syntax
  • Loading branch information
sethlyons committed Mar 25, 2015
2 parents 070e683 + da97f8f commit 86ae4e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/named.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ options {

<% if !@extra_options.empty? -%>
<% @extra_options.sort_by {|key, value| key}.each do |key,value| -%>
<%# Deal with options that don't play well as array elements %>
<% if key.eql?('also-notify') -%>
<%= key %> { <%= value.join('; ') %> }
<% else -%>
<%= key %> <%= value %>;
<% end -%>
<%# Deal with options that don't play well as array elements %>
<% if key.eql?('also-notify') -%>
<%= key %> { <%= value.join('; ') %>; };
<% else -%>
<%= key %> <%= value %>;
<% end -%>
<% end -%>

<% end -%>
Expand Down

0 comments on commit 86ae4e4

Please sign in to comment.