Permalink
Browse files

Merge pull request #2 from librato/apisite

Allow configurable Api site.
  • Loading branch information...
2 parents c369b59 + 0097eea commit c9d7e3ca816fea38abed695b9d1d6bf1be3b9df8 @mheffner mheffner committed Oct 27, 2012
Showing with 9 additions and 4 deletions.
  1. +9 −4 recipes/install.rb
View
@@ -5,8 +5,13 @@
# Install plugin
collectd_python_plugin "collectd-librato" do
path "/opt/collectd-librato-#{ver}/lib"
- options({
- "APIToken" => node[:collectd_librato][:api_token],
- "Email" => node[:collectd_librato][:email]
- })
+ opts = {
+ "APIToken" => node[:collectd_librato][:api_token],
+ "Email" => node[:collectd_librato][:email]
+ }
+
+ if node[:collectd_librato][:api]
+ opts["Api"] = node[:collectd_librato][:api]
+ end
+ options(opts)
end

0 comments on commit c9d7e3c

Please sign in to comment.