
# HG changeset patch # User Heidi Eckhart <heidieck@linux.vnet.ibm.com> # Date 1196685310 -3600 # Node ID 495e8bdd4e1415b253fd64f0527760ad11b75580 # Parent 7c6276f57a7423a8c9a88fd48a3b4b7180948fd1 HS: 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@linux.vnet.ibm.com> diff -r 7c6276f57a74 -r 495e8bdd4e14 schema/HostedService.registration --- a/schema/HostedService.registration Mon Dec 03 13:11:56 2007 +0100 +++ b/schema/HostedService.registration Mon Dec 03 13:35:10 2007 +0100 @@ -1,4 +1,4 @@ # Copyright IBM Corp. 2007 -# Classname Namespace ProviderName ProviderModule ProviderTypes ... -Xen_HostedService root/virt Xen_HostedServiceProvider Virt_HostedService association -KVM_HostedService root/virt KVM_HostedServiceProvider Virt_HostedService association +# Classname Namespace ProviderName ProviderModule ProviderTypes +Xen_HostedService root/virt Virt_HostedServiceProvider Virt_HostedService association +KVM_HostedService root/virt Virt_HostedServiceProvider Virt_HostedService association diff -r 7c6276f57a74 -r 495e8bdd4e14 src/Virt_HostedService.c --- a/src/Virt_HostedService.c Mon Dec 03 13:11:56 2007 +0100 +++ b/src/Virt_HostedService.c Mon Dec 03 13:35:10 2007 +0100 @@ -159,8 +159,7 @@ static struct std_assoc *handlers[] = { NULL }; -STDA_AssocMIStub(, Xen_HostedServiceProvider, _BROKER, libvirt_cim_init(), handlers); -STDA_AssocMIStub(, KVM_HostedServiceProvider, _BROKER, libvirt_cim_init(), handlers); +STDA_AssocMIStub(, Virt_HostedServiceProvider, _BROKER, libvirt_cim_init(), handlers); /* * Local Variables: