fixed bug in pki.py state module
This commit is contained in:
parent
37f967003f
commit
ed877c80b8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user