# HG changeset patch
# User Zhengang Li <lizg(a)cn.ibm.com>
# Date 1200042953 -28800
# Node ID ebb30883a8e98732e2800193eacc11cbe00eb18c
# Parent ca8dc23eacc44970a2d79978bc9de65aaa600b92
Fix array type missing in VSMigrationCapabilities properties.
sfcb doesn't seem to doing well on array without a type. It
will report an 'invalid data type 8192 2000' upon generating
the returned instances for EnumInstances request.
Signed-off-by: Zhengang Li <lizg(a)cn.ibm.com>
diff -r ca8dc23eacc4 -r ebb30883a8e9 src/Virt_VSMigrationCapabilities.c
--- a/src/Virt_VSMigrationCapabilities.c Wed Jan 09 13:08:17 2008 +0100
+++ b/src/Virt_VSMigrationCapabilities.c Fri Jan 11 17:15:53 2008 +0800
@@ -46,7 +46,7 @@ static CMPIStatus set_method_properties(
CMPIStatus s;
uint16_t val;
- array = CMNewArray(broker, 2, CMPI_INTEGER, &s);
+ array = CMNewArray(broker, 2, CMPI_uint16, &s);
if (s.rc != CMPI_RC_OK)
return s;
@@ -57,10 +57,10 @@ static CMPIStatus set_method_properties(
CMSetArrayElementAt(array, 1, (CMPIValue *)&val, CMPI_uint16);
CMSetProperty(inst, "AsynchronousMethodsSupported",
- (CMPIValue *)&array, CMPI_ARRAY);
+ (CMPIValue *)&array, CMPI_uint16A);
- array = CMNewArray(broker, 2, CMPI_INTEGER, &s);
+ array = CMNewArray(broker, 2, CMPI_uint16, &s);
if (s.rc != CMPI_RC_OK)
return s;
@@ -71,7 +71,7 @@ static CMPIStatus set_method_properties(
CMSetArrayElementAt(array, 1, (CMPIValue *)&val, CMPI_uint16);
CMSetProperty(inst, "SynchronousMethodsSupported",
- (CMPIValue *)&array, CMPI_ARRAY);
+ (CMPIValue *)&array, CMPI_uint16A);
CMSetStatus(&s, CMPI_RC_OK);
Show replies by date