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

Commit

Permalink
Merge pull request #320 from scopenco/master
Browse files Browse the repository at this point in the history
Fix ssl_enable attr for influxdbwriter
  • Loading branch information
vkhatri authored Apr 9, 2018
2 parents c7b120f + 4e79e21 commit 752bce0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libraries/icinga2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def icinga_format(toplevel)
rval = '[ '
when NilClass
return 'null'
when TrueClass, FalseClass
return toplevel.to_s
when String, Float, Integer
return toplevel.inspect
when Symbol
Expand Down
2 changes: 1 addition & 1 deletion libraries/resource_influxdbwriter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def password(arg = nil)
def ssl_enable(arg = nil)
set_or_return(
:ssl_enable, arg,
:kind_of => String,
:kind_of => [TrueClass, FalseClass],
:default => false
)
end
Expand Down

0 comments on commit 752bce0

Please sign in to comment.