diff --git a/manifests/init.pp b/manifests/init.pp index 307c469..146abf1 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -86,9 +86,9 @@ # 'name' => 'approval-Code-Review', # 'approvals' => '-2, -1', # }, -# ] +# ], # }, -# ] +# ], # # trackingids: # A list of regexes to reference external tracking systems. diff --git a/spec/acceptance/fixtures/default.pp b/spec/acceptance/fixtures/default.pp index 7d5ba03..0d2f044 100644 --- a/spec/acceptance/fixtures/default.pp +++ b/spec/acceptance/fixtures/default.pp @@ -57,9 +57,9 @@ class { '::gerrit': 'name' => 'approval-Code-Review', 'approvals' => '-2, -1', }, - ] + ], }, - ] + ], } class { '::gerrit::cron': } diff --git a/templates/gerrit.its_rules.erb b/templates/gerrit.its_rules.erb index ec4e3e6..a9a7973 100644 --- a/templates/gerrit.its_rules.erb +++ b/templates/gerrit.its_rules.erb @@ -1,7 +1,7 @@ <% @its_rules.each do |its_rule| -%> [rule "<%= its_rule['name'] %>"] action = <%= its_rule['action'] %> - <% unless its_rule['event-type'].nil? -%> + <% unless its_rule['event_type'].nil? -%> event-type = <%= its_rule['event_type'] %> <% end -%> <% unless its_rule['label'].nil? -%>