diff --git a/templates/default/object.checkcommand.conf.erb b/templates/default/object.checkcommand.conf.erb index 756d4b8..251842e 100644 --- a/templates/default/object.checkcommand.conf.erb +++ b/templates/default/object.checkcommand.conf.erb @@ -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 %> diff --git a/templates/default/object.eventcommand.conf.erb b/templates/default/object.eventcommand.conf.erb index a135d0d..7ec7021 100644 --- a/templates/default/object.eventcommand.conf.erb +++ b/templates/default/object.eventcommand.conf.erb @@ -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 %> diff --git a/templates/default/object.notificationcommand.conf.erb b/templates/default/object.notificationcommand.conf.erb index 137a76c..5ffc32b 100644 --- a/templates/default/object.notificationcommand.conf.erb +++ b/templates/default/object.notificationcommand.conf.erb @@ -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 %>