From 2cfb9222873dae9ab427740be6d33e6abc68ab55 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 10:00:57 +0000 Subject: Interpolate the ID correctly. Remove duplication of the hostname. --- bin/custodian-dequeue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/custodian-dequeue') diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue index 3c2b173..dbd545a 100755 --- a/bin/custodian-dequeue +++ b/bin/custodian-dequeue @@ -101,10 +101,10 @@ class Alert # e.g. ping-example.vm.bytemark.co.uk-low # e.g. http-http://example.com/page1-low - alert.id = "#{@details['test_type']}-@details['target_host']-low" + alert.id = "#{@details['test_type']}-#{@details['target_host']}-low" alert.subject = @details['target_host'] - alert.summary = "#{@details['target_host']} #{@details['test_alert']}" + alert.summary = @details['test_alert'] alert.detail = "The #{@details['test_type']} test failed against #{@details['target_host']}: #{detail}" alert.raise_time = Time.now.to_i update.alert << alert @@ -127,10 +127,10 @@ class Alert # e.g. ping-example.vm.bytemark.co.uk-low # e.g. http-http://example.com/page1-low - alert.id = "#{@details['test_type']}-@details['target_host']-low" + alert.id = "#{@details['test_type']}-#{@details['target_host']}-low" alert.subject = @details['target_host'] - alert.summary = "#{@details['target_host']} #{@details['test_alert']}" + alert.summary = @details['test_alert'] alert.detail = "The #{@details['test_type']} test succeeded against #{@details['target_host']}" alert.clear_time = Time.now.to_i update.alert << alert -- cgit v1.2.1