# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1196683550 -3600
# Node ID 97209a4aec46e659a9134dc28ac19c2f43b51c7c
# Parent 6dbbe2c148a7cc2ba74ffc9e3ddcf7acdc30042c
EC: Provider registered per subclass
The provider was registered for each subclass with a different
name. That caused duplicated instances as the same provider gets
called twice, but has no chance to figure out for which registration.
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r 6dbbe2c148a7 -r 97209a4aec46 schema/ElementCapabilities.registration
--- a/schema/ElementCapabilities.registration Mon Dec 03 13:01:53 2007 +0100
+++ b/schema/ElementCapabilities.registration Mon Dec 03 13:05:50 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes
-Xen_ElementCapabilities root/virt Xen_ElementCapabilitiesProvider
Virt_ElementCapabilities association
-KVM_ElementCapabilities root/virt KVM_ElementCapabilitiesProvider
Virt_ElementCapabilities association
+Xen_ElementCapabilities root/virt Virt_ElementCapabilitiesProvider
Virt_ElementCapabilities association
+KVM_ElementCapabilities root/virt Virt_ElementCapabilitiesProvider
Virt_ElementCapabilities association
diff -r 6dbbe2c148a7 -r 97209a4aec46 src/Virt_ElementCapabilities.c
--- a/src/Virt_ElementCapabilities.c Mon Dec 03 13:01:53 2007 +0100
+++ b/src/Virt_ElementCapabilities.c Mon Dec 03 13:05:50 2007 +0100
@@ -359,8 +359,7 @@ struct std_assoc *assoc_handlers[] = {
NULL
};
-STDA_AssocMIStub(, Xen_ElementCapabilitiesProvider, _BROKER, libvirt_cim_init(),
assoc_handlers);
-STDA_AssocMIStub(, KVM_ElementCapabilitiesProvider, _BROKER, libvirt_cim_init(),
assoc_handlers);
+STDA_AssocMIStub(, Virt_ElementCapabilitiesProvider, _BROKER, libvirt_cim_init(),
assoc_handlers);
/*
* Local Variables:
* mode: C