From d0d57526c8ee689135a0cd0aeee95e22cf80cb68 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 25 Sep 2021 16:14:50 +0200 Subject: [PATCH] updated pki.py script --- states/_states/pki.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/states/_states/pki.py b/states/_states/pki.py index fa938c9..d30d793 100644 --- a/states/_states/pki.py +++ b/states/_states/pki.py @@ -8,7 +8,7 @@ def fetched(name=None, username=None, password=None, domains=None, - certfile=None, + fullcertfile=None, keyfile=None): ret = { @@ -22,7 +22,7 @@ def fetched(name=None, currentkey = None domain_concat = ",".join(domains) - currentcert = __salt__['pki.get_file_content'](checkfile=certfile) + currentcert = __salt__['pki.get_file_content'](checkfile=fullcertfile) currentkey = __salt__['pki.get_file_content'](checkfile=keyfile) newcert, newkey = __salt__['pki.get_pki_cert'](url=url, @@ -31,7 +31,7 @@ def fetched(name=None, domains=domain_concat) if currentcert != newcert or currentkey != newkey: - wcert = __salt__['pki.write_file_content'](newcert, certfile) + wcert = __salt__['pki.write_file_content'](newcert, fullcertfile) wkey = __salt__['pki.write_file_content'](newkey, keyfile) ret["changes"]["old"] = "\n".join([currentcert, currentkey])