add analysis type to analyzer main function
The analyzer behavior will vary depending on the type of event that
triggered analysis. For example, we do not want to perform any service
actions when manual analysis is done from the command line.
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: Iecfbac7f680b3fefebb0e02a9caa5fc06b692c7a
diff --git a/attn/attn_logging.cpp b/attn/attn_logging.cpp
index 279d212..9f0e531 100644
--- a/attn/attn_logging.cpp
+++ b/attn/attn_logging.cpp
@@ -219,7 +219,8 @@
if (it != i_additional.end() && "true" == it->second)
{
DumpParameters dumpParameters;
- auto plid = analyzer::analyzeHardware(dumpParameters);
+ auto plid = analyzer::analyzeHardware(
+ analyzer::AnalysisType::TERMINATE_IMMEDIATE, dumpParameters);
if (0 != plid)
{
// Link the PLID if an attention was found and a PEL was generated.