Skip to content

Commit

Permalink
Merge pull request #23 from ripienaar/22
Browse files Browse the repository at this point in the history
(#22) improve handling of complex data types in fact summaries
  • Loading branch information
ripienaar authored Feb 28, 2019
2 parents 424dbff + 74e227d commit 02e2847
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/mcollective/application/facts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ def main

rpcutil.get_fact(:fact => configuration[:fact]) do |resp|
begin
value = resp[:body][:data][:value]
if value
value = resp[:body][:data][:value].to_s

if resp[:body][:data].include?(:value)
if facts.include?(value)
facts[value] << resp[:senderid]
else
Expand Down

0 comments on commit 02e2847

Please sign in to comment.