From 57d324f3b4148dd6f39a3c8d2936989fde4b14be Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Nov 2012 23:15:58 +0000 Subject: When adding a new test return to the caller the JSON values we added - as an array --- bin/custodian-enqueue | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') 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 -- cgit v1.2.1