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)