# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1203681291 -3600
# Node ID e12a643f2af88b12b3031de23bb3fd5698badaba
# Parent acb930f1a7c5886d906e30b524d09d4844bbffa3
SDS: adopt interface changes of RASD
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r acb930f1a7c5 -r e12a643f2af8 src/Virt_SettingsDefineState.c
--- a/src/Virt_SettingsDefineState.c Fri Feb 22 12:54:50 2008 +0100
+++ b/src/Virt_SettingsDefineState.c Fri Feb 22 12:54:51 2008 +0100
@@ -159,6 +159,7 @@ static CMPIStatus rasd_to_dev(const CMPI
{
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIInstance *dev = NULL;
+ CMPIInstance *inst = NULL;
const char *id = NULL;
uint16_t type;
@@ -178,6 +179,10 @@ static CMPIStatus rasd_to_dev(const CMPI
"Missing ResourceType");
goto out;
}
+
+ s = get_rasd_by_name(_BROKER, ref, id, type, &inst);
+ if (s.rc != CMPI_RC_OK)
+ goto out;
dev = _get_typed_device(id, type, ref, &s);
if (dev == NULL)
@@ -185,9 +190,6 @@ static CMPIStatus rasd_to_dev(const CMPI
inst_list_add(list, dev);
- cu_statusf(_BROKER, &s,
- CMPI_RC_OK,
- "");
out:
return s;
}