sort the output of certmaster-ca before displaying them
authorSeth Vidal <skvidal@fedoraproject.org>
Tue, 16 Feb 2010 18:12:49 +0000 (13:12 -0500)
committerSeth Vidal <skvidal@fedoraproject.org>
Tue, 16 Feb 2010 18:12:49 +0000 (13:12 -0500)
scripts/certmaster-ca

index 37a509c..d10c1a2 100755 (executable)
@@ -63,7 +63,7 @@ def main(args):
     if opts.list:
         hns = cm.get_csrs_waiting()
         if hns:
-            for hn in cm.get_csrs_waiting():
+            for hn in sorted(hns):
                 print hn
         else:
            print 'No certificates to sign'
@@ -104,7 +104,7 @@ def main(args):
 
         signed_certs = cm.get_signed_certs(args)
 
-        for i in signed_certs:
+        for i in sorted(signed_certs):
             print i
             
         return 0
@@ -116,7 +116,7 @@ def main(args):
             
         cert_hashes = cm.get_cert_hashes(hostglobs)
 
-        for i in cert_hashes:
+        for i in sorted(cert_hashes):
             print i
             
         return 0