From dcbd098ab07a6832a50386792831b65dafe2da33 Mon Sep 17 00:00:00 2001 From: prachi Date: Mon, 7 May 2012 12:43:11 -0700 Subject: [PATCH] CS-14777- Not able to retrieve password of a VM using ec2-get-password command. Resolved. The response parsing in awsapi was broken. --- awsapi/src/com/cloud/stack/CloudStackApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awsapi/src/com/cloud/stack/CloudStackApi.java b/awsapi/src/com/cloud/stack/CloudStackApi.java index d4e7703d6a5..70e109080e0 100644 --- a/awsapi/src/com/cloud/stack/CloudStackApi.java +++ b/awsapi/src/com/cloud/stack/CloudStackApi.java @@ -348,7 +348,7 @@ public class CloudStackApi { if (cmd != null) cmd.setParam(ApiConstants.ID, id); // TODO: This probably isn't right. Need to test with an instance that has a VM Password - return _client.call(cmd, apiKey, secretKey, true, ApiConstants.GET_VM_PASSWORD_RESPONSE, null, CloudStackPasswordData.class); + return _client.call(cmd, apiKey, secretKey, true, ApiConstants.GET_VM_PASSWORD_RESPONSE, ApiConstants.PASSWORD, CloudStackPasswordData.class); } // Templates