mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8315: CS API listVMSnapshot doesn't have tags ‘project’ and ‘projectid’.
This commit is contained in:
parent
555c432946
commit
182d770f9f
|
|
@ -557,6 +557,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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue