cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: updated refs/heads/4.5 to eca7f9c
Date Wed, 11 Mar 2015 11:09:26 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.5 02cadc3fb -> eca7f9cac


CLOUDSTACK-8315: CS API listVMSnapshot doesn't have tags ‘project’ and ‘projectid’.

(cherry picked from commit 182d770f9f5fef26e5136b20ee71c34e5327ca43)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


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

Branch: refs/heads/4.5
Commit: eca7f9cacc23d4347852386b4f358f3ab0884adc
Parents: 02cadc3
Author: Sanjay Tripathi <sanjay.tripathi@citrix.com>
Authored: Wed Mar 11 13:26:08 2015 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Wed Mar 11 16:39:18 2015 +0530

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/eca7f9ca/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 abd2be9..9f066fb 100755
--- a/server/src/com/cloud/api/ApiResponseHelper.java
+++ b/server/src/com/cloud/api/ApiResponseHelper.java
@@ -510,6 +510,11 @@ public class ApiResponseHelper implements ResponseGenerator {
                 vmSnapshotResponse.setParentName(vmSnapshotParent.getDisplayName());
             }
         }
+        Project project = ApiDBUtils.findProjectByProjectAccountId(vmSnapshot.getAccountId());
+        if (project != null) {
+            vmSnapshotResponse.setProjectId(project.getUuid());
+            vmSnapshotResponse.setProjectName(project.getName());
+        }
         vmSnapshotResponse.setCurrent(vmSnapshot.getCurrent());
         vmSnapshotResponse.setType(vmSnapshot.getType().toString());
         vmSnapshotResponse.setObjectName("vmsnapshot");


Mime
View raw message