# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1222113882 25200
# Node ID 8d683acf0587201617d65d8da41818a00165b398
# Parent 1dcb9b94763bc92ad33e0ff2d2483e771253102c
Remove value 4 from VSSD ValueMap.
libvirt treats "Turn Off" and "Shutdown" in the same manner.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 1dcb9b94763b -r 8d683acf0587 schema/VSSD.mof
--- a/schema/VSSD.mof Fri Sep 19 11:30:54 2008 -0700
+++ b/schema/VSSD.mof Mon Sep 22 13:04:42 2008 -0700
@@ -29,6 +29,10 @@
"One of hd,fd,cdrom.")]
string BootDevice;
+ [Override, ValueMap { "2", "3", ".." },
+ Values { "Turn Off", "Save state", "DMTF
Reserved" }]
+ uint16 AutomaticShutdownAction;
+
};
[Description (
@@ -41,6 +45,10 @@
[Description ("The device to boot from. One of hd,fd,cdrom.")]
string BootDevice;
+
+ [Override, ValueMap { "2", "3", ".." },
+ Values { "Turn Off", "Save state", "DMTF
Reserved" }]
+ uint16 AutomaticShutdownAction;
};
@@ -55,4 +63,8 @@
[Description ("Path to the init process for the container")]
string InitPath;
+ [Override, ValueMap { "2", "3", ".." },
+ Values { "Turn Off", "Save state", "DMTF
Reserved" }]
+ uint16 AutomaticShutdownAction;
+
};
diff -r 1dcb9b94763b -r 8d683acf0587 src/Virt_KVMRedirectionSAP.c
--- a/src/Virt_KVMRedirectionSAP.c Fri Sep 19 11:30:54 2008 -0700
+++ b/src/Virt_KVMRedirectionSAP.c Mon Sep 22 13:04:42 2008 -0700
@@ -194,17 +194,25 @@
CU_DEBUG("calling get_console_sap");
inst = get_console_sap(_BROKER, ref, conn, dominfo, &s);
+CU_DEBUG("after get_console");
virDomainFree(list[i]);
cleanup_dominfo(&dominfo);
- if (inst == NULL)
+ if (inst == NULL) {
+CU_DEBUG("instance is null, continuing");
continue;
+ }
- if (names_only)
+CU_DEBUG("returning inst");
+ if (names_only) {
+CU_DEBUG("names_only");
cu_return_instance_name(results, inst);
- else
+ }
+ else {
+CU_DEBUG("no names");
CMReturnInstance(results, inst);
+ }
}
out: