# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1196685314 -3600
# Node ID cd9afb53c5e76783d891d7bda74d1e642cf6701e
# Parent c6de8c296f561df41811ca04c2ea992b729cfea3
VSSDC: 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 c6de8c296f56 -r cd9afb53c5e7 schema/VSSDComponent.registration
--- a/schema/VSSDComponent.registration Mon Dec 03 13:35:13 2007 +0100
+++ b/schema/VSSDComponent.registration Mon Dec 03 13:35:14 2007 +0100
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2007
# Classname Namespace ProviderName ProviderModule ProviderTypes
-Xen_VirtualSystemSettingDataComponent root/virt Xen_VSSDComponentProvider
Virt_VSSDComponent association
-KVM_VirtualSystemSettingDataComponent root/virt KVM_VSSDComponentProvider
Virt_VSSDComponent association
+Xen_VirtualSystemSettingDataComponent root/virt Virt_VSSDComponentProvider
Virt_VSSDComponent association
+KVM_VirtualSystemSettingDataComponent root/virt Virt_VSSDComponentProvider
Virt_VSSDComponent association
diff -r c6de8c296f56 -r cd9afb53c5e7 src/Virt_VSSDComponent.c
--- a/src/Virt_VSSDComponent.c Mon Dec 03 13:35:13 2007 +0100
+++ b/src/Virt_VSSDComponent.c Mon Dec 03 13:35:14 2007 +0100
@@ -230,8 +230,7 @@ static struct std_assoc *handlers[] = {
NULL
};
-STDA_AssocMIStub(, Xen_VSSDComponentProvider, _BROKER, libvirt_cim_init(), handlers);
-STDA_AssocMIStub(, KVM_VSSDComponentProvider, _BROKER, libvirt_cim_init(), handlers);
+STDA_AssocMIStub(, Virt_VSSDComponentProvider, _BROKER, libvirt_cim_init(), handlers);
/*
* Local Variables: