[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a

Garrett Holmstrom gholms at fedoraproject.org
Sun Jun 16 02:31:28 UTC 2013


The following commit has been merged in the master branch:
commit 7b7a4c9118609614feb227c8cbccd344d78e9ed7
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue May 21 17:28:17 2013 -0700

    Sort and de-dupe image listings
    
    Fixes TOOLS-340

diff --git a/euca2ools/commands/euca/describeimages.py b/euca2ools/commands/euca/describeimages.py
index a2714f6..096e8c6 100644
--- a/euca2ools/commands/euca/describeimages.py
+++ b/euca2ools/commands/euca/describeimages.py
@@ -127,7 +127,10 @@ class DescribeImages(EucalyptusRequest):
             return self.send()
 
     def print_result(self, result):
+        images = {}
         for image in result.get('imagesSet', []):
+            images.setdefault(image['imageId'], image)
+        for image_id, image in sorted(images.iteritems()):
             self.print_image(image)
 
     def print_image(self, image):

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list