Implementation of deleteFRUVPD api

The api sets present property of given FRU as false.
If the present property is already set to false, it will
log error.

One of the use case:
This api is to be called before requesting VPD parser to
collect VPD of any given FRU in case of concurrent
maintenance.

Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: Ibbe2eba34e586e02bcb0bec38945a81d1efe6109
diff --git a/ibm_vpd_utils.cpp b/ibm_vpd_utils.cpp
index de25528..b135d5e 100644
--- a/ibm_vpd_utils.cpp
+++ b/ibm_vpd_utils.cpp
@@ -145,7 +145,7 @@
     auto result = bus.call(properties);
     if (!result.is_method_error())
     {
-        std::variant<Binary, std::string> val;
+        inventory::Value val;
         result.read(val);
         if (auto pVal = std::get_if<Binary>(&val))
         {
@@ -156,6 +156,17 @@
         {
             propVal.assign(pVal->data(), pVal->size());
         }
+        else if (auto pVal = get_if<bool>(&val))
+        {
+            if (*pVal == false)
+            {
+                propVal = "false";
+            }
+            else
+            {
+                propVal = "true";
+            }
+        }
     }
     return propVal;
 }