summaryrefslogtreecommitdiff
path: root/lib/oxidized/output/file.rb
diff options
context:
space:
mode:
authornopedial <shafez@ike-2.local>2013-10-26 11:23:48 +0200
committernopedial <shafez@ike-2.local>2013-10-26 11:23:48 +0200
commit52c5c00326d723c4649f862dde66fdaf331f7250 (patch)
treebf9d8efdeb1755552e87c8e8402a57092958157f /lib/oxidized/output/file.rb
parent4af4b982307f5abce1c01b3bd39aa1cd03d8b768 (diff)
cleanup ascii API output
Diffstat (limited to 'lib/oxidized/output/file.rb')
-rw-r--r--lib/oxidized/output/file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/output/file.rb b/lib/oxidized/output/file.rb
index 2ea2302..da778ff 100644
--- a/lib/oxidized/output/file.rb
+++ b/lib/oxidized/output/file.rb
@@ -28,7 +28,7 @@ class OxFile < Output
def fetch node, group
cfg_dir = @cfg[:directory]
- if group != 0 # group is explicitly defined by user
+ if group # group is explicitly defined by user
IO.readlines File.join(cfg_dir, group, node)
else
if File.exists? File.join(cfg_dir, node) # node configuration file is stored on base directory