From 74d9ba8651346e8a6653a32a70ea2216c4a45f61 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 22 Feb 2018 14:23:06 +0200 Subject: If a test has a subject used, then use it. --- lib/custodian/alerts/mauve.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/custodian/alerts/mauve.rb b/lib/custodian/alerts/mauve.rb index 697c7fb..13ac747 100644 --- a/lib/custodian/alerts/mauve.rb +++ b/lib/custodian/alerts/mauve.rb @@ -227,7 +227,16 @@ module Custodian id_key += test.class.to_s alert.id = Digest::SHA1.hexdigest(id_key) + # + # Set the subject of the alert + # alert.subject = subject + + # + # But allow it to be overwritten if something was specified. + # + alert.subject = test.get_subject() unless test.get_subject().nil? + alert.summary = "The #{test_type} test failed against #{test_host}" # -- cgit v1.2.1