From: Seth Vidal Date: Tue, 16 Feb 2010 18:12:49 +0000 (-0500) Subject: sort the output of certmaster-ca before displaying them X-Git-Tag: v0.28~19 X-Git-Url: https://pwan.org/git/?a=commitdiff_plain;h=67070b83b2873cd26228d5002989cae73ead0167;p=certmaster.git sort the output of certmaster-ca before displaying them --- diff --git a/scripts/certmaster-ca b/scripts/certmaster-ca index 37a509c..d10c1a2 100755 --- a/scripts/certmaster-ca +++ b/scripts/certmaster-ca @@ -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