[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:14 UTC 2013


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

    Make euca-describe-instances show instance tags
    
    Fixes TOOLS-152

diff --git a/euca2ools/utils.py b/euca2ools/utils.py
index 45476b6..bbecefc 100644
--- a/euca2ools/utils.py
+++ b/euca2ools/utils.py
@@ -113,6 +113,10 @@ def print_instances(instances, nil=""):
                 val = ','.join(val)
             items.append(val)
         print "INSTANCE\t%s" % '\t'.join(items)
+        if hasattr(instance, 'tags') and isinstance(instance.tags, dict):
+            for tag in instance.tags:
+                print '\t'.join(('TAG', 'instance', instance.id, tag,
+                                 instance.tags[tag]))
 
 def print_version_if_necessary():
     """

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list