PEL: Don't send PELs to host when flag disabled

Don't put any PELs on the queue to send to the host when the setting to
send event logs to the host has been set to false.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I37be53f54c354e2c440ac3a932630a4905e311f1
diff --git a/extensions/openpower-pels/host_notifier.cpp b/extensions/openpower-pels/host_notifier.cpp
index 2e132b9..566edda 100644
--- a/extensions/openpower-pels/host_notifier.cpp
+++ b/extensions/openpower-pels/host_notifier.cpp
@@ -84,6 +84,12 @@
     bool required = true;
     Repository::LogID i{Repository::LogID::Pel{id}};
 
+    // Manufacturing testing may turn off sending up PELs
+    if (!_dataIface.getHostPELEnablement())
+    {
+        return false;
+    }
+
     if (auto attributes = _repo.getPELAttributes(i); attributes)
     {
         auto a = attributes.value().get();