Persistence the led group asserted value by default

Currently, only IBM's P10 machine will persist the Asserted attribute
value of ledGroup by default. But for other systems, most do not need
to perform persistence actions.

The intent behind this commit is to add a switch to control the
persistence function, and it is enabled by default in CI and disabled
by default in Yocto.

Tested: Regardless of whether `persistent-led-asserted` is enabled or
disabled, the ledmanager process works fine.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I75b59a12dde417a9ccadaf25b2af07fc33186a01
diff --git a/manager/group.cpp b/manager/group.cpp
index d728f2b..c9ad161 100644
--- a/manager/group.cpp
+++ b/manager/group.cpp
@@ -39,7 +39,10 @@
     auto result = manager.setGroupState(path, value, ledsAssert, ledsDeAssert);
 
     // Store asserted state
-    serialize.storeGroups(path, result);
+    if (serializePtr)
+    {
+        serializePtr->storeGroups(path, result);
+    }
 
     // If something does not go right here, then there should be an sdbusplus
     // exception thrown.