vpd-tool:Pick xyz location code interface

Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
Change-Id: Icc58f4fc596fe43b5a09f9628f0b55bb8056a333
diff --git a/vpd_tool_impl.cpp b/vpd_tool_impl.cpp
index a7cc205..d01a28d 100644
--- a/vpd_tool_impl.cpp
+++ b/vpd_tool_impl.cpp
@@ -248,7 +248,20 @@
         {
             if (!(ex.value().is_null()))
             {
-                getExtraInterfaceProperties(invPath, ex.key(), ex.value(), js);
+                // TODO: Remove this if condition check once inventory json is
+                // updated with xyz location code interface.
+                if (ex.key() == "com.ibm.ipzvpd.Location")
+                {
+                    getExtraInterfaceProperties(
+                        invPath,
+                        "xyz.openbmc_project.Inventory.Decorator.LocationCode",
+                        ex.value(), js);
+                }
+                else
+                {
+                    getExtraInterfaceProperties(invPath, ex.key(), ex.value(),
+                                                js);
+                }
             }
             if ((ex.key().find("Item") != string::npos) &&
                 (ex.value().is_null()))