# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1194957414 -3600
# Node ID a561761306d40f4394cb519784c5b474a268db7d
# Parent b201578d4ade863822cb06c1e52d839f51250d87
GetInstance does not return NOT_FOUND in case of Xen classname on KVM system (and
reverse)
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r b201578d4ade -r a561761306d4 src/Virt_ComputerSystem.c
--- a/src/Virt_ComputerSystem.c Tue Nov 13 09:37:25 2007 +0100
+++ b/src/Virt_ComputerSystem.c Tue Nov 13 13:36:54 2007 +0100
@@ -381,6 +381,11 @@ static CMPIStatus get_domain(const CMPIO
virConnectPtr conn = NULL;
const char *prop = NULL;
+ if (!provider_is_responsible(_BROKER, reference, &s)) {
+ CMSetStatus(&s, CMPI_RC_ERR_NOT_FOUND);
+ return s;
+ }
+
conn = lv_connect(_BROKER, &s);
if (conn == NULL)
return s;