[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 67ed8126f7d7af12ad389088e3a5c7a88e18c54d
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Dec 11 11:51:41 2012 -0800

    Make euca-describe-snapshots show snapshot tags

diff --git a/euca2ools/commands/euca/describesnapshots.py b/euca2ools/commands/euca/describesnapshots.py
index 658ddf1..504f424 100644
--- a/euca2ools/commands/euca/describesnapshots.py
+++ b/euca2ools/commands/euca/describesnapshots.py
@@ -90,6 +90,10 @@ class DescribeSnapshots(euca2ools.commands.eucacommand.EucaCommand):
                 val = getattr(snapshot, member, "")
                 items.append(str(val))
             print "SNAPSHOT\t%s" % '\t'.join(items)
+            if hasattr(snapshot, 'tags') and isinstance(snapshot.tags, dict):
+                for tag in snapshot.tags:
+                    print '\t'.join(('TAG', 'snapshot', snapshot.id, tag,
+                                     snapshot.tags[tag]))
 
 
     def main(self):

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list