summaryrefslogtreecommitdiff
path: root/lib/oxidized/nodes.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2018-04-27 13:57:27 +0300
committerGitHub <noreply@github.com>2018-04-27 13:57:27 +0300
commit1311573a1adff6edf2c0b3cfdb05ca83d6c46e73 (patch)
tree5d5d8e916a7a12c1e29bc2b5e6b31805eabaa0d8 /lib/oxidized/nodes.rb
parent34fd5369feee94ab45c5a81d7769b1df717e4c8c (diff)
parent137314377bbc15b651228a0394caf45e6fa8bcbc (diff)
Merge pull request #1095 from laf/feature/oxs-single-host
feature Allow oxs to call for single host
Diffstat (limited to 'lib/oxidized/nodes.rb')
-rw-r--r--lib/oxidized/nodes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/nodes.rb b/lib/oxidized/nodes.rb
index 84766f0..a159b48 100644
--- a/lib/oxidized/nodes.rb
+++ b/lib/oxidized/nodes.rb
@@ -12,7 +12,8 @@ module Oxidized
@source = Oxidized.config.source.default
Oxidized.mgr.add_source @source
Oxidized.logger.info "lib/oxidized/nodes.rb: Loading nodes"
- Oxidized.mgr.source[@source].new.load.each do |node|
+ nodes = Oxidized.mgr.source[@source].new.load node_want
+ nodes.each do |node|
# we want to load specific node(s), not all of them
next unless node_want? node_want, node
begin