fixed bug in pki.py state module

This commit is contained in:
Paul 2022-11-08 11:08:12 +01:00
parent 37f967003f
commit ed877c80b8

View File

@ -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)