CLOUDSTACK-3633: AffinityGroupResponse does not include uuid

The uuid->id of the affinity group created is not included as part of
the response. Included the uuid.

Signed-off-by: Prasanna Santhanam <[email protected]>
(cherry picked from commit fbf38a35d286a3c9da38e42d3a2675169775bb27)

Conflicts:
        server/src/com/cloud/api/ApiResponseHelper.java

Signed-off-by: Prasanna Santhanam <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/0c5b698a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/0c5b698a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/0c5b698a

Branch: refs/heads/master
Commit: 0c5b698ac8ab4d72ed0a7bd1b2862045e89bbcdb
Parents: cba42bb
Author: Prasanna Santhanam <[email protected]>
Authored: Thu Jul 18 18:13:11 2013 +0530
Committer: Prasanna Santhanam <[email protected]>
Committed: Thu Jul 18 18:31:23 2013 +0530

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiResponseHelper.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0c5b698a/server/src/com/cloud/api/ApiResponseHelper.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiResponseHelper.java 
b/server/src/com/cloud/api/ApiResponseHelper.java
index 6d279b8..19f8037 100755
--- a/server/src/com/cloud/api/ApiResponseHelper.java
+++ b/server/src/com/cloud/api/ApiResponseHelper.java
@@ -263,10 +263,10 @@ import com.cloud.storage.ImageStore;
 import com.cloud.storage.S3;
 import com.cloud.storage.Snapshot;
 import com.cloud.storage.SnapshotVO;
-import com.cloud.storage.Upload;
 import com.cloud.storage.Storage.StoragePoolType;
 import com.cloud.storage.StoragePool;
 import com.cloud.storage.Swift;
+import com.cloud.storage.Upload;
 import com.cloud.storage.UploadVO;
 import com.cloud.storage.VMTemplateVO;
 import com.cloud.storage.Volume;
@@ -3638,6 +3638,7 @@ public class ApiResponseHelper implements 
ResponseGenerator {
         AffinityGroupResponse response = new AffinityGroupResponse();
 
         Account account = ApiDBUtils.findAccountById(group.getAccountId());
+        response.setId(group.getUuid());
         response.setAccountName(account.getAccountName());
         response.setName(group.getName());
         response.setType(group.getType());

Reply via email to