From 67070b83b2873cd26228d5002989cae73ead0167 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Tue, 16 Feb 2010 13:12:49 -0500 Subject: [PATCH] sort the output of certmaster-ca before displaying them --- scripts/certmaster-ca | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2