mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 21:27:10 +09:00
Merge branch 'feature-1835' into one-4.0
Conflicts: src/lcm/LifeCycleStates.cc src/vmm/VirtualMachineManager.cc
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user