mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Ensure key is bytes not string
This commit is contained in:
parent
389aac9663
commit
a10aa05f41
1 changed files with 3 additions and 1 deletions
|
@ -213,7 +213,9 @@ class ReqServerChannel:
|
|||
log.error("AES key not found")
|
||||
return {"error": "AES key not found"}
|
||||
pret = {}
|
||||
pret["key"] = pub.encrypt(key, encryption_algorithm)
|
||||
pret["key"] = pub.encrypt(
|
||||
salt.utils.stringutils.to_bytes(key), encryption_algorithm
|
||||
)
|
||||
if ret is False:
|
||||
ret = {}
|
||||
if sign_messages:
|
||||
|
|
Loading…
Add table
Reference in a new issue