summaryrefslogtreecommitdiff
path: root/lib/oxidized/api
diff options
context:
space:
mode:
authornopedial <shafez@ike-2.local>2013-10-26 11:30:26 +0200
committernopedial <shafez@ike-2.local>2013-10-26 11:30:26 +0200
commit7982a7d3956910406e59952e1b215d5b4dd1d8e5 (patch)
tree3c92898daade43cdbbec317c07c2073b2a40e730 /lib/oxidized/api
parent713bccb736d87283d98781e7c557cd48bae24aa3 (diff)
set group to nil if no group is defined
Diffstat (limited to 'lib/oxidized/api')
-rw-r--r--lib/oxidized/api/rest.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/api/rest.rb b/lib/oxidized/api/rest.rb
index 17fade1..cdf5c80 100644
--- a/lib/oxidized/api/rest.rb
+++ b/lib/oxidized/api/rest.rb
@@ -50,7 +50,7 @@ module Oxidized
if $1.include? '/'
group, node = $1.split("/")[1..2]
else
- group, node = 0, $1
+ group, node = nil, $1
end
ascii = if node[-4..-1] == '.txt'
node = node[0..-5]