Merge branch 'feature-1835' into one-4.0

Conflicts:
	src/lcm/LifeCycleStates.cc
	src/vmm/VirtualMachineManager.cc
This commit is contained in:
Ruben S. Montero committed 2013-04-03 17:11:16 +02:00
commit 72e68b0703
11 files changed
+108 -14

No files matched your search

@@ -857,7 +857,20 @@ public class VirtualMachine extends PoolElement{
*/
public OneResponse poweroff()
{
return action("poweroff");
return poweroff(false);
}
/**
* Powers off a running VM.
* @param hard True to perform a hard (no acpi) shutdown, false for a
* graceful shutdown
* @return If an error occurs the error message contains the reason.
*/
public OneResponse poweroff(boolean hard)
{
String actionSt = hard ? "poweroff-hard" : "poweroff";
return action(actionSt);
}
/**