From 411a724ee3ed8ecf220c756bca5eb2fb8ea3a75a Mon Sep 17 00:00:00 2001 From: thomashaw Date: Thu, 3 Feb 2022 20:25:45 +0000 Subject: [PATCH] (wip) --- lib/output/xml_alertaction_config_generator.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/output/xml_alertaction_config_generator.rb b/lib/output/xml_alertaction_config_generator.rb index 476b7f116..ce385abd8 100644 --- a/lib/output/xml_alertaction_config_generator.rb +++ b/lib/output/xml_alertaction_config_generator.rb @@ -78,7 +78,9 @@ class XmlAlertActionConfigGenerator @alert_actions = @alert_actions + get_web_alertactions(aa_conf, system.name, system.goals, $datastore['goal_flags'], system.hostname, auto_grader_hostname) end system.module_selections.each do |module_selection| - @alert_actions = @alert_actions + get_web_alertactions(aa_conf, module_selection.module_path_end, module_selection.goals, module_selection.received_inputs['goal_flags'], system.hostname, auto_grader_hostname) + if module_selection.goals and module_selection.received_inputs['goal_flags'] + @alert_actions = @alert_actions + get_web_alertactions(aa_conf, module_selection.module_path_end, module_selection.goals, module_selection.received_inputs['goal_flags'], system.hostname, auto_grader_hostname) + end end end end