Added sorting to renewal_conf_files()

This commit is contained in:
Trinopoty Biswas 2019-01-05 00:44:12 +05:30
parent 3fa3ffea71
commit 233cfe5207

View file

@ -41,7 +41,9 @@ def renewal_conf_files(config):
:rtype: `list` of `str`
"""
return glob.glob(os.path.join(config.renewal_configs_dir, "*.conf"))
result = glob.glob(os.path.join(config.renewal_configs_dir, "*.conf"))
result.sort()
return result
def renewal_file_for_certname(config, certname):
"""Return /path/to/certname.conf in the renewal conf directory"""