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

Commit

Permalink
[Add] Support for Appending arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Techcadia committed Jun 22, 2017
1 parent b76f583 commit dbec624
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/default/object.checkcommand.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
timeout = <%= options['timeout'] %>
<% end -%>
<% if options['arguments'] && !options['arguments'].empty? -%>
arguments = {
arguments <% if options['import'] %>+<% end %>= {
<% options['arguments'].each do |var, value| -%>
<% if value.is_a?(String) || value.is_a?(Integer) || value.is_a?(Float) -%>
<%= var.inspect -%> = <%= value.inspect %>
Expand Down
2 changes: 1 addition & 1 deletion templates/default/object.eventcommand.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<% end -%>

<% if options['arguments'] && !options['arguments'].empty? -%>
arguments = {
arguments <% if options['import'] %>+<% end %>= {
<% options['arguments'].each do |var, value| -%>
<% if value.is_a?(String) -%>
<%= var.inspect -%> = <%= value.inspect %>
Expand Down
2 changes: 1 addition & 1 deletion templates/default/object.notificationcommand.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
timeout = <%= options['timeout'] %>
<% end -%>
<% if options['arguments'] && !options['arguments'].empty? -%>
arguments = {
arguments <% if options['import'] %>+<% end %>= {
<% options['arguments'].each do |var, value| -%>
<% if value.is_a?(String) -%>
<%= var.inspect -%> = <%= value.inspect %>
Expand Down

0 comments on commit dbec624

Please sign in to comment.