Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6 from flessa/master

Default parameter to "list" always returns empty
  • Loading branch information...
commit afee5213af39ec27a8084c969293df93e06e553e 2 parents 7f6f56d + 8cfe197
@sosedoff authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/munin-ruby/node.rb
View
4 lib/munin-ruby/node.rb
@@ -50,8 +50,8 @@ def nodes
# Get a list of all available metrics
#
- def list(node = nil)
- cache "list_#{node || 'default'}" do
+ def list(node = "")
+ cache "list_#{node.empty? ? 'default' : node}" do
connection.send_data("list #{node}")
if ( line = connection.read_line ) != "."
line.split
Please sign in to comment.
Something went wrong with that request. Please try again.