forked from voxpupuli/puppet-smokeping
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes voxpupuli#74 voxpupuli#70 introduced a regression. Several parameters were made mandatory (previously they defaulted to an empty string.) They are now `Optional` and default to `undef`.
- Loading branch information
1 parent
f190083
commit 5327bc4
Showing
2 changed files
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
<%= '+' * @hierarchy_level.to_i %> <%= @name %> | ||
<% if @probe != '' then -%> | ||
<% if @probe then -%> | ||
probe = <%= @probe %> | ||
<% end -%> | ||
|
||
menu = <%= @menu %> | ||
<% if @pagetitle != '' then -%> | ||
<% if @pagetitle then -%> | ||
title = <%= @pagetitle %> | ||
<% else -%> | ||
title = <%= @menu %> | ||
<% end -%> | ||
<% if @host != '' then -%> | ||
<% if @host then -%> | ||
host = <%= @host %> | ||
<% end -%> | ||
<% if ! @alerts.empty? then -%> | ||
<% unless @alerts.empty? then -%> | ||
alerts = <%= @alerts.join(',') %> | ||
<% end -%> | ||
<% if @nomasterpoll then -%> | ||
nomasterpoll = yes | ||
<% end -%> | ||
<% if @slaves != [] then -%> | ||
<% unless @slaves.empty? then -%> | ||
slaves = <%= @slaves.join(' ') %> | ||
<% end -%> | ||
<% if @remark != '' then -%> | ||
<% if @remark then -%> | ||
remark = <%= @remark %> | ||
<% end -%> | ||
<% if @options then -%> | ||
<%- @options.sort.each do |key,value| -%> | ||
<%= key %> = <%= value %> | ||
<%- end -%> | ||
<% end -%> | ||
|
||
|