diff options
author | Jonathan Bauer | 2016-09-02 15:04:01 +0200 |
---|---|---|
committer | Jonathan Bauer | 2016-09-02 15:04:01 +0200 |
commit | c4a693230a2e0e2c918d838d9370499f90570fac (patch) | |
tree | f4098f17f14907516bb154c22821879b7c480841 /dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java | |
parent | [client] vm-config editor finished, accessible from the popup menu of image's... (diff) | |
download | tutor-module-c4a693230a2e0e2c918d838d9370499f90570fac.tar.gz tutor-module-c4a693230a2e0e2c918d838d9370499f90570fac.tar.xz tutor-module-c4a693230a2e0e2c918d838d9370499f90570fac.zip |
[client] reworked vmx editor
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java')
-rw-r--r-- | dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java index d6f6ce74..94d25297 100644 --- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java +++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/ServerHandler.java @@ -743,10 +743,9 @@ public class ServerHandler implements SatelliteServer.Iface { } @Override - public ByteBuffer setImageVersionVirtConfig(String userToken, String imageVersionId, + public void setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer machineDescription) throws TAuthorizationException, TNotFoundException, TInvocationException, TException { - SessionManager.getOrFail(userToken); UserInfo user = SessionManager.getOrFail(userToken); User.canEditImageVersionOrFail(user, imageVersionId); byte[] mdBytes = ThriftUtil.unwrapByteBuffer(machineDescription); @@ -756,6 +755,5 @@ public class ServerHandler implements SatelliteServer.Iface { throw new TInvocationException(InvocationError.INTERNAL_SERVER_ERROR, "Database failure when setting the virtualizer config for '" + imageVersionId + "'."); } - return ByteBuffer.wrap(mdBytes); } } |