Daniel Erez has uploaded a new change for review.

Change subject: core: VmLogonCommand - missing constructor
......................................................................

core: VmLogonCommand - missing constructor

VmLogonCommand is invoked only from client (UserPortal/REST),
hence, a missing constructor causes a RuntimeException [1]
when connecting to console. Added a new ctr without
the CommandContext parameter.

Note: InternalCommandAttribute annotation should probably be
removed as the action is performed merely from the client.

[1] "could not find matching constructor for Command class class
org.ovirt.engine.core.bll.VmLogonCommand"

Change-Id: If0c750656a01e51614553427551896cfd6b54dd5
Signed-off-by: Daniel Erez <de...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmLogonCommand.java
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/14/29614/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmLogonCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmLogonCommand.java
index 1027f71..147c3a6 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmLogonCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmLogonCommand.java
@@ -13,6 +13,10 @@
 @InternalCommandAttribute
 public class VmLogonCommand<T extends VmOperationParameterBase> extends 
VmOperationCommandBase<T> {
 
+    public VmLogonCommand(T parameters) {
+        super(parameters, null);
+    }
+
     public VmLogonCommand(T parameters, CommandContext cmdContext) {
         super(parameters, cmdContext);
     }


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If0c750656a01e51614553427551896cfd6b54dd5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <de...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to