
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1203104631 28800 # Node ID fa322bc4b62e52fd6afafa93bc933860c714f2af # Parent 485d129ffabd639f7d28f29584065550dba4a267 Update calls to get_vsm_cap() to use new param. This param indicates whether the reference should be validated, or if an instance (without ref validation) should be returned. Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r 485d129ffabd -r fa322bc4b62e src/Virt_ElementCapabilities.c --- a/src/Virt_ElementCapabilities.c Fri Feb 15 11:41:41 2008 -0800 +++ b/src/Virt_ElementCapabilities.c Fri Feb 15 11:43:51 2008 -0800 @@ -60,7 +60,7 @@ static CMPIStatus validate_caps_get_serv classname = class_base_name(CLASSNAME(ref)); if (STREQC(classname, "VirtualSystemManagementCapabilities")) { - s = get_vsm_cap(_BROKER, ref, &_inst); + s = get_vsm_cap(_BROKER, ref, &_inst, true); if ((s.rc != CMPI_RC_OK) || (_inst == NULL)) goto out; @@ -97,7 +97,7 @@ static CMPIStatus validate_service_get_c if ((s.rc != CMPI_RC_OK) || (_inst == NULL)) goto out; - s = get_vsm_cap(_BROKER, ref, &_inst); + s = get_vsm_cap(_BROKER, ref, &_inst, false); } else if (STREQC(classname, "VirtualSystemMigrationService")) { s = get_migration_service(ref, &_inst, _BROKER); if ((s.rc != CMPI_RC_OK) || (_inst == NULL)) @@ -131,7 +131,7 @@ static CMPIStatus sys_to_cap(const CMPIO if (s.rc != CMPI_RC_OK) goto out; - s = get_vsm_cap(_BROKER, ref, &inst); + s = get_vsm_cap(_BROKER, ref, &inst, false); if (s.rc == CMPI_RC_OK) inst_list_add(list, inst);