
+1 Kaitlin Rupert wrote:
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1243887903 25200 # Node ID ffea3e262ba257e0e3f8cfe70daac6bba5ffc118 # Parent c127bb551eb81bfe3fe3a2ad0225d7307e4bd1ee Expose package release version in VirtualSystemManagementService
The Revision and Changeset values don't always give a full picture of the provider version installed on the system. This patch adds a Reelase attribute which exposes the release version - this helps provide version baseline.
Test query: wbemcli ei http://localhost/root/virt:KVM_VirtualSystemManagementService -nl
You should see a "Release" attribute in the list
Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com>
diff -r c127bb551eb8 -r ffea3e262ba2 schema/VirtualSystemManagementService.mof --- a/schema/VirtualSystemManagementService.mof Mon May 18 18:13:06 2009 -0700 +++ b/schema/VirtualSystemManagementService.mof Mon Jun 01 13:25:03 2009 -0700 @@ -8,6 +8,9 @@
[Description("HG revision number of the providers")] string Revision; + + [Description("Package Version")] + string Release; };
[Provider("cmpi::Virt_VirtualSystemManagementService")] @@ -18,6 +21,9 @@
[Description("HG revision number of the providers")] string Revision; + + [Description("Package Version")] + string Release; };
[Provider("cmpi::Virt_VirtualSystemManagementService")] @@ -28,4 +34,7 @@
[Description("HG revision number of the providers")] string Revision; + + [Description("Package Version")] + string Release; }; diff -r c127bb551eb8 -r ffea3e262ba2 src/Virt_VirtualSystemManagementService.c --- a/src/Virt_VirtualSystemManagementService.c Mon May 18 18:13:06 2009 -0700 +++ b/src/Virt_VirtualSystemManagementService.c Mon Jun 01 13:25:03 2009 -0700 @@ -2248,6 +2248,9 @@ CMSetProperty(inst, "Revision", (CMPIValue *)LIBVIRT_CIM_RV, CMPI_chars);
+ CMSetProperty(inst, "Release", + (CMPIValue *)PACKAGE_VERSION, CMPI_chars); + if (is_get_inst) { s = cu_validate_ref(broker, reference, inst); if (s.rc != CMPI_RC_OK)
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Richard Maciel, MSc IBM Linux Technology Center rmaciel@linux.vnet.ibm.com