Code Review
/
packages
/
precise
/
mcollective.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update version according to OSCI-856
[packages/precise/mcollective.git]
/
plugins
/
mcollective
/
agent
/
rpcutil.rb
diff --git
a/plugins/mcollective/agent/rpcutil.rb
b/plugins/mcollective/agent/rpcutil.rb
index 1c8c71e36d4caa5351c237196cba1ec0ecc1385e..0422286895435956eec66fdb1abcb2fe88bf1605 100644
(file)
--- a/
plugins/mcollective/agent/rpcutil.rb
+++ b/
plugins/mcollective/agent/rpcutil.rb
@@
-21,6
+21,15
@@
module MCollective
action "get_fact" do
reply[:fact] = request[:fact]
reply[:value] = Facts[request[:fact]]
action "get_fact" do
reply[:fact] = request[:fact]
reply[:value] = Facts[request[:fact]]
+ end
+
+ action "get_facts" do
+ response = {}
+ request[:facts].split(',').map { |x| x.strip }.each do |fact|
+ value = Facts[fact]
+ response[fact] = value
+ end
+ reply[:values] = response
end
# Get the global stats for this mcollectied
end
# Get the global stats for this mcollectied