[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, experimental, updated. debian/2.1.1-1_experimental1-51-g95835b7

Garrett Holmstrom gholms at fedoraproject.org
Thu Jan 3 11:06:15 UTC 2013


The following commit has been merged in the experimental branch:
commit c9fbe9039acf5e755948bda62fa6ca70e8d48929
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Dec 11 11:48:55 2012 -0800

    Make euca-describe-volumes show volume tags

diff --git a/euca2ools/commands/euca/describevolumes.py b/euca2ools/commands/euca/describevolumes.py
index e7f3246..0d6ed32 100644
--- a/euca2ools/commands/euca/describevolumes.py
+++ b/euca2ools/commands/euca/describevolumes.py
@@ -100,6 +100,10 @@ class DescribeVolumes(euca2ools.commands.eucacommand.EucaCommand):
                         volume.attach_data.status,
                         volume.attach_data.attach_time)
                 print 'ATTACHMENT\t%s' % attachment_string
+            if hasattr(volume, 'tags') and isinstance(volume.tags, dict):
+                for tag in volume.tags:
+                    print '\t'.join(('TAG', 'volume', volume.id, tag,
+                                     volume.tags[tag]))
 
     def main(self):
         conn = self.make_connection_cli()

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list