# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1204546228 -3600
# Node ID 4166fe782224243c171c9dc8c08e95a447177736
# Parent 0d2ac636d4463d881b1e200c44f1086411e5c074
HRP: adopt DevicePool interface change
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r 0d2ac636d446 -r 4166fe782224 src/Virt_HostedResourcePool.c
--- a/src/Virt_HostedResourcePool.c Mon Mar 03 13:09:05 2008 +0100
+++ b/src/Virt_HostedResourcePool.c Mon Mar 03 13:10:28 2008 +0100
@@ -47,8 +47,8 @@ static CMPIStatus pool_to_sys(const CMPI
if (!match_hypervisor_prefix(ref, info))
goto out;
- s = get_pool_inst(_BROKER, ref, &inst);
- if ((s.rc != CMPI_RC_OK) || (inst == NULL))
+ s = get_pool_by_ref(_BROKER, ref, &inst);
+ if (s.rc != CMPI_RC_OK)
goto out;
s = get_host(_BROKER, ref, &inst, false);