# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1196685312 -3600
# Node ID 909704b38ca4c9bfcb1121924053f26818d8316b
# Parent 4caca9f23d36235f40a1011be956e3c8d135f77b
SDS: 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 4caca9f23d36 -r 909704b38ca4 schema/SettingsDefineState.registration
--- a/schema/SettingsDefineState.registration Mon Dec 03 13:35:11 2007 +0100
+++ b/schema/SettingsDefineState.registration Mon Dec 03 13:35:12 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes
-Xen_SettingsDefineState root/virt Xen_SettingsDefineStateProvider
Virt_SettingsDefineState association
-KVM_SettingsDefineState root/virt KVM_SettingsDefineStateProvider
Virt_SettingsDefineState association
+Xen_SettingsDefineState root/virt Virt_SettingsDefineStateProvider
Virt_SettingsDefineState association
+KVM_SettingsDefineState root/virt Virt_SettingsDefineStateProvider
Virt_SettingsDefineState association
diff -r 4caca9f23d36 -r 909704b38ca4 src/Virt_SettingsDefineState.c
--- a/src/Virt_SettingsDefineState.c Mon Dec 03 13:35:11 2007 +0100
+++ b/src/Virt_SettingsDefineState.c Mon Dec 03 13:35:12 2007 +0100
@@ -399,8 +399,7 @@ static struct std_assoc *handlers[] = {
NULL
};
-STDA_AssocMIStub(, Xen_SettingsDefineStateProvider, _BROKER, libvirt_cim_init(),
handlers);
-STDA_AssocMIStub(, KVM_SettingsDefineStateProvider, _BROKER, libvirt_cim_init(),
handlers);
+STDA_AssocMIStub(, Virt_SettingsDefineStateProvider, _BROKER, libvirt_cim_init(),
handlers);
/*
* Local Variables: