Determine Version properties

Set purpose and version properties.

Change-Id: I3598082417ca44605c706e841efeb770237d7239
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/version_host_software_manager.hpp b/version_host_software_manager.hpp
index eb970aa..e9b62d8 100755
--- a/version_host_software_manager.hpp
+++ b/version_host_software_manager.hpp
@@ -28,8 +28,17 @@
          * @param[in] versionId - The Host version identifier
          */
         Version(sdbusplus::bus::bus& bus,
-                const std::string& objPath) : VersionInherit(
-                    bus, (objPath).c_str()) {};
+                const std::string& objPath,
+                const std::string& versionId) : VersionInherit(
+                    bus, (objPath).c_str(), true)
+        {
+            // Set properties.
+            purpose(VersionPurpose::Host);
+            version(versionId);
+
+            // Emit deferred signal.
+            emit_object_added();
+        }
 
         /**
          * @brief Get the code version identifier.
diff --git a/version_host_software_manager_main.cpp b/version_host_software_manager_main.cpp
index bb3283e..0b5d973 100644
--- a/version_host_software_manager_main.cpp
+++ b/version_host_software_manager_main.cpp
@@ -15,7 +15,7 @@
     auto id = openpower::software::manager::Version::getId(version);
 
     openpower::software::manager::Version manager(bus,
-            std::string{SOFTWARE_OBJPATH} + '/' + id);
+            std::string{SOFTWARE_OBJPATH} + '/' + id, version);
 
     bus.request_name(VERSION_BUSNAME);