Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
The "times"-parameter does not allow "-character
Browse files Browse the repository at this point in the history
The "times"-parameter inside of the configuration blocks to arrange
{apply,}notifications does not allow "-character around the values of
the keys in the hash.

The template used for both these type invokes the #inspect function on
the value of the hash. Always surround the value with double
apostrophes.

This commit fixes that issue.
  • Loading branch information
vncntvandriessche committed Jan 25, 2016
1 parent e5c8e6e commit 77b5261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/default/object.applynotification.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ apply Notification <%= object.inspect -%> to <%= options['object_type'] -%> {
times = {
<% options['times'].each do |var, value| %>
<% if var && value -%>
<%= var %> = <%= value.inspect %>
<%= var %> = <%= value %>
<%- end -%>
<%- end -%>
}
Expand Down
2 changes: 1 addition & 1 deletion templates/default/object.notification.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
times = {
<% options['times'].each do |var, value| %>
<% if var && value -%>
<%= var %> = <%= value.inspect %>
<%= var %> = <%= value %>
<%- end -%>
<%- end -%>
}
Expand Down

0 comments on commit 77b5261

Please sign in to comment.