Tomas Jelinek has uploaded a new change for review.

Change subject: engine: run once with stateless uses run (#852345)
......................................................................

engine: run once with stateless uses run (#852345)

https://bugzilla.redhat.com/852345

select vm->run once->boot options->check Run Stateless->click OK

Fixed by changing the RunVmCommand.EndSuccessfully

runInternalAction(VdcActionType.RunVm
runInternalAction(getActionType()

because the EndSuccessfully is inherited also by
RunVmOnceCommand.

Change-Id: Ib50667011e8fab98b456652648f18137ede1ef58
Signed-off-by: Tomas Jelinek <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/29/7529/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
index ebc2f29..4b52b37 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
@@ -718,7 +718,7 @@
             // the "beginning step" of the child command.
             runStatelessVmCtx.setStep(runStatelessStep);
             setSucceeded(getBackend()
-                    .runInternalAction(VdcActionType.RunVm, getParameters(), 
new CommandContext(runStatelessVmCtx))
+                    .runInternalAction(getActionType(), getParameters(), new 
CommandContext(runStatelessVmCtx))
                     .getSucceeded());
             if (!getSucceeded()) {
                 // could not run the vm don't try to run the end action


--
To view, visit http://gerrit.ovirt.org/7529
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib50667011e8fab98b456652648f18137ede1ef58
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tomas Jelinek <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to