Browse Source

Removed a duplicate enable_notifications rendering in the user object ERB tempalte.

Nick Chappell 9 năm trước cách đây
mục cha
commit
c70857e802
1 tập tin đã thay đổi với 3 bổ sung6 xóa
  1. 3 6
      templates/object_user.conf.erb

+ 3 - 6
templates/object_user.conf.erb

@@ -17,16 +17,16 @@ object User "<%= @object_username %>" {
   import "<%= @template_to_import -%>"
   <%- end -%>
   <%- if @display_name -%>
-  display_name "<%= @display_name -%>"
+  display_name = "<%= @display_name -%>"
   <%- end -%>
   <%- if @email -%>
-  email "<%= @email -%>"
+  email = "<%= @email -%>"
   <%- end -%>
   <%- if @pager -%>
   pager "<%= @pager -%>"
   <%- end -%>
   <%- if @enable_notifications -%>
-  enable_notifications = "<%= @enable_notifications -%>"
+  enable_notifications = <%= @enable_notifications -%>
   <%- end -%>
   <%- if @vars.empty? != true  -%>
   <%- @vars.each_pair do |key, value| -%>
@@ -36,9 +36,6 @@ object User "<%= @object_username %>" {
   <%- if @groups.length != 0 -%>
   groups = [ <%- @groups.each do |group| -%> "<%= group %>", <%- end -%>]
   <%- end -%>
-  <%- if @enable_notifications -%>
-  enable_notifications = <%= @enable_notifications -%>
-  <%- end -%>
   <%- if @period -%>
   period = "<%= @period -%>"
   <%- end -%>