From ed877c80b88b67cc5084e6cb1700bcb769524ad8 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 8 Nov 2022 11:08:12 +0100 Subject: [PATCH] fixed bug in pki.py state module --- states/_states/pki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/states/_states/pki.py b/states/_states/pki.py index 065a423..b5de94e 100644 --- a/states/_states/pki.py +++ b/states/_states/pki.py @@ -34,7 +34,7 @@ def fetched(name=None, newfullcert = f"{newcert}\n\n{newkey}" if all([newcert,newkey,newfullcert]): - if currentcert != newcert or currentkey != newkey != currentfullcert != newfullcert: + if currentcert != newcert or currentkey != newkey or currentfullcert != newfullcert: wcert = __salt__['pki.write_file_content'](newcert, certfile) wkey = __salt__['pki.write_file_content'](newkey, keyfile) wfullcert = __salt__['pki.write_file_content'](newfullcert, fullcertfile)