Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2 from librato/apisite

Allow configurable Api site.
  • Loading branch information...
commit c9d7e3ca816fea38abed695b9d1d6bf1be3b9df8 2 parents c369b59 + 0097eea
@mheffner mheffner authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 recipes/install.rb
View
13 recipes/install.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.