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 | 57d324f3b4148dd6f39a3c8d2936989fde4b14be (patch) | |
| tree | 02634ebce37eba1832672a8d8bb40af94d5366d2 | |
| parent | 07c651ef879a50844ce30844435642f65eaaeac8 (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 | 
