Skip to content

Commit

Permalink
fix gmetad.conf handling of an undefined gridname param
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Dec 15, 2013
1 parent be89a48 commit ebccc4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/gmetad.pp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

class ganglia::gmetad(
$clusters = [ { 'name' => 'my cluster', 'address' => 'localhost' } ],
$gridname = '',
$gridname = undef,
) inherits ganglia::params {
validate_array($clusters)
validate_string($gridname)
Expand Down
2 changes: 1 addition & 1 deletion templates/gmetad.conf.el6.erb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ data_source "<%= data_source['name'] -%>"<% if data_source['polling_interval'] t
# The name of this Grid. All the data sources above will be wrapped in a GRID
# tag with this name.
# default: unspecified
<% if @gridname then -%>
<% unless @gridname.nil? -%>
gridname "<%= @gridname %>"
<% else -%>
# gridname "MyGrid"
Expand Down

0 comments on commit ebccc4b

Please sign in to comment.