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


The following commit has been merged in the master branch:
commit f8bb7ca99717f801746cc51f5d53f65c1f401923
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Fri Apr 12 17:19:18 2013 -0700

    Fix instance set sorting
    
    Fixes TOOLS-293

diff --git a/euca2ools/commands/euca/__init__.py b/euca2ools/commands/euca/__init__.py
index b12aac8..da87ea9 100644
--- a/euca2ools/commands/euca/__init__.py
+++ b/euca2ools/commands/euca/__init__.py
@@ -224,8 +224,8 @@ class EucalyptusRequest(requestbuilder.request.AWSQueryRequest,
                      for group in reservation['groupSet']]
         res_line.append(', '.join(group_ids))
         print self.tabify(res_line)
-        for instance in sorted(reservation.get('instancesSet', []),
-                               itemgetter('launchTime')):
+        for instance in sorted(reservation.get('instancesSet') or [],
+                               key=itemgetter('launchTime')):
             self.print_instance(instance)
 
     def print_instance(self, instance):

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list