# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1196683916 -3600
# Node ID 7c6276f57a7423a8c9a88fd48a3b4b7180948fd1
# Parent 97209a4aec46e659a9134dc28ac19c2f43b51c7c
ESD: 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 97209a4aec46 -r 7c6276f57a74 schema/ElementSettingData.registration
--- a/schema/ElementSettingData.registration Mon Dec 03 13:05:50 2007 +0100
+++ b/schema/ElementSettingData.registration Mon Dec 03 13:11:56 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
-# Classname Namespace ProviderName ProviderModule ProviderTypes ...
-Xen_ElementSettingData root/virt Xen_ElementSettingDataProvider Virt_ElementSettingData
association
-KVM_ElementSettingData root/virt KVM_ElementSettingDataProvider Virt_ElementSettingData
association
+# Classname Namespace ProviderName ProviderModule ProviderTypes
+Xen_ElementSettingData root/virt Virt_ElementSettingDataProvider Virt_ElementSettingData
association
+KVM_ElementSettingData root/virt Virt_ElementSettingDataProvider Virt_ElementSettingData
association
diff -r 97209a4aec46 -r 7c6276f57a74 src/Virt_ElementSettingData.c
--- a/src/Virt_ElementSettingData.c Mon Dec 03 13:05:50 2007 +0100
+++ b/src/Virt_ElementSettingData.c Mon Dec 03 13:11:56 2007 +0100
@@ -227,8 +227,7 @@ static struct std_assoc *handlers[] = {
NULL
};
-STDA_AssocMIStub(, Xen_ElementSettingDataProvider, _BROKER, libvirt_cim_init(),
handlers);
-STDA_AssocMIStub(, KVM_ElementSettingDataProvider, _BROKER, libvirt_cim_init(),
handlers);
+STDA_AssocMIStub(, Virt_ElementSettingDataProvider, _BROKER, libvirt_cim_init(),
handlers);
/*
* Local Variables: