diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-13 23:15:58 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-13 23:15:58 +0000 |
commit | d4bd7026a3e1a40c223b0faa3cf2c3900766fcca (patch) | |
tree | 02634ebce37eba1832672a8d8bb40af94d5366d2 | |
parent | 9743376ac87220356d40c1dd7adb8fbf4f99e5dd (diff) |
When adding a new test return to the caller the JSON values we added - as an array
-rwxr-xr-x | bin/custodian-enqueue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index 337004e..a023792 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -364,6 +364,8 @@ class MonitorConfig end + ret = Array.new() + # # For each host in our possibly-macro-expanded list: # @@ -430,7 +432,11 @@ class MonitorConfig else @queue.put( test.to_json ) end + + ret.push( test.to_json ) end + + ret else puts "Unknown line: '#{line}'" end |