# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1196246395 -3600
# Node ID 89962d7f2e1b440d1ca525a9ec40a6c76cdc0e58
# Parent 96c97073edc357edb1ff554d8c92207e644998c5
ECTP: make use of function to check for hypervisor prefixes
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r 96c97073edc3 -r 89962d7f2e1b src/Virt_ElementConformsToProfile.c
--- a/src/Virt_ElementConformsToProfile.c Wed Nov 28 11:27:09 2007 +0100
+++ b/src/Virt_ElementConformsToProfile.c Wed Nov 28 11:39:55 2007 +0100
@@ -107,6 +107,9 @@ static CMPIStatus prof_to_elem(const CMP
char *id;
int i;
+ if (!match_hypervisor_prefix(ref, info))
+ return s;
+
conn = connect_by_classname(_BROKER, CLASSNAME(ref), &s);
if (conn == NULL)
return s;
@@ -146,6 +149,9 @@ static CMPIStatus elem_to_prof(const CMP
char *classname;
struct reg_prof *candidate;
int i;
+
+ if (!match_hypervisor_prefix(ref, info))
+ return s;
conn = connect_by_classname(_BROKER, CLASSNAME(ref), &s);
if (conn == NULL)