[Libvirt-cim] [PATCH] Fix incorrect use of InstanceID instead of DeviceID in SDS

Dan Smith danms at us.ibm.com
Fri Nov 2 00:19:47 UTC 2007


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1424173566 28800
# Node ID e1cc2a3bbeffbb0b6ec390c68a0b0cb3d39a6f22
# Parent  a292dd2d0e1fc7e0e5d7d85afe67aae5fa7fa6ed
Fix incorrect use of InstanceID instead of DeviceID in SDS

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r a292dd2d0e1f -r e1cc2a3bbeff src/Virt_SettingsDefineState.c
--- a/src/Virt_SettingsDefineState.c	Tue Feb 17 03:44:43 2015 -0800
+++ b/src/Virt_SettingsDefineState.c	Tue Feb 17 03:46:06 2015 -0800
@@ -80,11 +80,11 @@ static CMPIStatus dev_to_rasd(const CMPI
 
         inst_list_init(&rasds);
 
-        id = cu_get_str_path(ref, "InstanceID");
+        id = cu_get_str_path(ref, "DeviceID");
         if (id == NULL) {
                 cu_statusf(_BROKER, &s,
                            CMPI_RC_ERR_FAILED,
-                           "Missing InstanceID");
+                           "Missing DeviceID");
                 goto out;
         }
 
@@ -92,7 +92,7 @@ static CMPIStatus dev_to_rasd(const CMPI
         if (!ret) {
                 cu_statusf(_BROKER, &s,
                            CMPI_RC_ERR_FAILED,
-                           "Invalid InstanceID");
+                           "Invalid DeviceID");
                 goto out;
         }
 




More information about the Libvirt-cim mailing list