incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sinisa Denic <sde...@peacebellservers.com>
Subject Re: Password has been reset to undefined
Date Thu, 14 Feb 2013 10:06:50 GMT
Sorry I forgot to set cs-dev mailing list in cc in my previous post so other users can see.
I will repeat:

In order to get password on UI after reset password for virtualmachine in CS4.1.0-SNAPSHOT

I had to made this modification:

--- a/api/src/org/apache/cloudstack/api/command/user/vm/ResetVMPasswordCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/vm/ResetVMPasswordCmd.java
@@ -114,6 +114,7 @@ public class ResetVMPasswordCmd extends BaseAsyncCmd {
         if (result != null){
             UserVmResponse response = _responseGenerator.createUserVmResponse("virtualmachine",
result).get(0);
             response.setResponseName(getCommandName());
+            response.setPassword(password);
             this.setResponseObject(response);
         } else {
             throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to reset vm
password");

Do you maybe know where the problem could reside,as I spent a few days on it :(?

Mime
View raw message