mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	bug 5905: Adding deviceId tag to the ListVolumes command when the volume is attached. status 5905: closed fixed
This commit is contained in:
		
							parent
							
								
									895fb85162
								
							
						
					
					
						commit
						6ae72df46a
					
				
							
								
								
									
										5
									
								
								server/src/com/cloud/api/commands/ListVolumesCmd.java
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										5
									
								
								server/src/com/cloud/api/commands/ListVolumesCmd.java
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -185,8 +185,9 @@ public class ListVolumesCmd extends BaseCmd{ | |||||||
|                 volumeData.add(new Pair<String, Object>(BaseCmd.Properties.VIRTUAL_MACHINE_ID.getName(), vm.getId())); |                 volumeData.add(new Pair<String, Object>(BaseCmd.Properties.VIRTUAL_MACHINE_ID.getName(), vm.getId())); | ||||||
|                 volumeData.add(new Pair<String, Object>(BaseCmd.Properties.VIRTUAL_MACHINE_NAME.getName(), vm.getName())); |                 volumeData.add(new Pair<String, Object>(BaseCmd.Properties.VIRTUAL_MACHINE_NAME.getName(), vm.getName())); | ||||||
|                 volumeData.add(new Pair<String, Object>(BaseCmd.Properties.VIRTUAL_MACHINE_DISPLAYNAME.getName(), vm.getName())); |                 volumeData.add(new Pair<String, Object>(BaseCmd.Properties.VIRTUAL_MACHINE_DISPLAYNAME.getName(), vm.getName())); | ||||||
|                 volumeData.add(new Pair<String, Object>(BaseCmd.Properties.VIRTUAL_MACHINE_STATE.getName(), vm.getState())); |                 volumeData.add(new Pair<String, Object>(BaseCmd.Properties.VIRTUAL_MACHINE_STATE.getName(), vm.getState())); | ||||||
|             }              |                 volumeData.add(new Pair<String, Object>(BaseCmd.Properties.DEVICE_ID.getName(), volume.getDeviceId())); | ||||||
|  |             } | ||||||
| 
 | 
 | ||||||
|             // Show the virtual size of the volume |             // Show the virtual size of the volume | ||||||
|             long virtualSizeInBytes = volume.getSize(); |             long virtualSizeInBytes = volume.getSize(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user