[Libvirt-cim] [PATCH 2 of 4] getInstance of RASD returns FAILED in case of NOT_FOUND

Heidi Eckhart heidieck at linux.vnet.ibm.com
Wed Jan 9 11:09:14 UTC 2008


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1199880496 -3600
# Node ID 35a3c6dc22e139c28360611f4363a2c8ec9bab11
# Parent  ae476a5a5ab9891f4fbd3591e4175173f6b55c8b
getInstance of RASD returns FAILED in case of NOT_FOUND
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r ae476a5a5ab9 -r 35a3c6dc22e1 src/Virt_RASD.c
--- a/src/Virt_RASD.c	Wed Jan 09 13:08:15 2008 +0100
+++ b/src/Virt_RASD.c	Wed Jan 09 13:08:16 2008 +0100
@@ -294,8 +294,8 @@ static CMPIStatus GetInstance(CMPIInstan
                 CMReturnInstance(results, inst);
         else
                 cu_statusf(_BROKER, &s,
-                           CMPI_RC_ERR_FAILED,
-                           "Unknown instance");
+                           CMPI_RC_ERR_NOT_FOUND,
+                           "No such instance (%s)", id);
  out:
         return s;
 }




More information about the Libvirt-cim mailing list