Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Allow configurable Api site. #2

Merged
merged 1 commit into from

1 participant

@mheffner
Owner

No description provided.

@mheffner mheffner merged commit c9d7e3c into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 26, 2012
  1. @mheffner

    Allow configurable Api site.

    mheffner authored
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.