# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1204541459 -3600
# Node ID a92cf052a7742789abbec11a463578fb4f8ae24d
# Parent f6c14b91e8da58e79221b9e7ccb652419dffcc23
HD: adopt ComputerSystem interface changes
Adopted interface changes to ComputerSystem.
Fixed wrong return in vs_to_host().
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r f6c14b91e8da -r a92cf052a774 src/Virt_HostedDependency.c
--- a/src/Virt_HostedDependency.c Mon Mar 03 11:50:59 2008 +0100
+++ b/src/Virt_HostedDependency.c Mon Mar 03 11:50:59 2008 +0100
@@ -46,7 +46,7 @@ static CMPIStatus vs_to_host(const CMPIO
if (!match_hypervisor_prefix(ref, info))
goto out;
- s = get_domain(_BROKER, ref, &instance);
+ s = get_domain_by_ref(_BROKER, ref, &instance);
if (s.rc != CMPI_RC_OK)
goto out;
@@ -64,8 +64,6 @@ static CMPIStatus host_to_vs(const CMPIO
struct std_assoc_info *info,
struct inst_list *list)
{
- int ret;
- virConnectPtr conn;
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIInstance *instance = NULL;
@@ -76,19 +74,7 @@ static CMPIStatus host_to_vs(const CMPIO
if (s.rc != CMPI_RC_OK)
goto out;
- conn = connect_by_classname(_BROKER, CLASSNAME(ref), &s);
- if (conn == NULL) {
- cu_statusf(_BROKER, &s,
- CMPI_RC_ERR_NOT_FOUND,
- "No such instance");
- goto out;
- }
-
- ret = enum_domains(_BROKER, conn, NAMESPACE(ref), list);
- if (!ret)
- cu_statusf(_BROKER, &s,
- CMPI_RC_ERR_FAILED,
- "Failed to get domain list");
+ s = enum_domains(_BROKER, ref, list);
out:
return s;