Merge "fix its_rules parameterization in template"

This commit is contained in:
Jenkins 2016-08-09 16:05:45 +00:00 committed by Gerrit Code Review
commit b276d1d8be
3 changed files with 5 additions and 5 deletions

View File

@ -86,9 +86,9 @@
# 'name' => 'approval-Code-Review',
# 'approvals' => '-2, -1',
# },
# ]
# ],
# },
# ]
# ],
#
# trackingids:
# A list of regexes to reference external tracking systems.

View File

@ -57,9 +57,9 @@ class { '::gerrit':
'name' => 'approval-Code-Review',
'approvals' => '-2, -1',
},
]
],
},
]
],
}
class { '::gerrit::cron': }

View File

@ -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? -%>