From d66740c6a68bf81ba2878573b43f0765eefe1af7 Mon Sep 17 00:00:00 2001 From: abhishek Date: Thu, 24 Feb 2011 13:21:43 -0800 Subject: [PATCH] bug 8698: adding device id to the list volumes return set status 8698: resolved fixed --- server/src/com/cloud/api/commands/ListVolumesCmd.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/com/cloud/api/commands/ListVolumesCmd.java b/server/src/com/cloud/api/commands/ListVolumesCmd.java index cc3e885dec6..bd22964efeb 100644 --- a/server/src/com/cloud/api/commands/ListVolumesCmd.java +++ b/server/src/com/cloud/api/commands/ListVolumesCmd.java @@ -218,7 +218,8 @@ public class ListVolumesCmd extends BaseCmd{ } Long poolId = volume.getPoolId(); String poolName = (poolId == null) ? "none" : getManagementServer().findPoolById(poolId).getName(); - volumeData.add(new Pair(BaseCmd.Properties.STORAGE.getName(), poolName)); + volumeData.add(new Pair(BaseCmd.Properties.STORAGE.getName(), poolName)); + volumeData.add(new Pair(BaseCmd.Properties.DEVICE_ID.getName(), volume.getDeviceId())); vTag[i++] = volumeData; }