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