Permalink
Browse files

Fix "euca-describe-volumes" output by adding the volume attaching sta…

…tus.
  • Loading branch information...
1 parent 4b9f6c8 commit 90a7438408c9fa6f9357449a179012726367e76c Ye Wen committed Jan 25, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 euca2ools/commands/euca/describevolumes.py
@@ -94,9 +94,10 @@ def display_volumes(self, volumes):
volume.create_time)
print 'VOLUME\t%s' % volume_string
if volume.status == 'in-use':
- attachment_string = '%s\t%s\t%s\t%s' % (volume.id,
+ attachment_string = '%s\t%s\t%s\t%s\t%s' % (volume.id,
volume.attach_data.instance_id,
volume.attach_data.device,
+ volume.attach_data.status,
volume.attach_data.attach_time)
print 'ATTACHMENT\t%s' % attachment_string

0 comments on commit 90a7438

Please sign in to comment.