mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Convert to string before sending via 'publish'.
Otherwise the publish call with receive a "b''" string, which can not be used in the functions.
This commit is contained in:
parent
651c5512d9
commit
deb013433d
1 changed files with 2 additions and 2 deletions
|
@ -1374,9 +1374,9 @@ def create_certificate(
|
|||
pem_type='CERTIFICATE REQUEST').replace('\n', '')
|
||||
if 'public_key' in kwargs:
|
||||
# Strip newlines to make passing through as cli functions easier
|
||||
kwargs['public_key'] = get_public_key(
|
||||
kwargs['public_key'] = salt.utils.stringutils.to_str(get_public_key(
|
||||
kwargs['public_key'],
|
||||
passphrase=kwargs['public_key_passphrase']).replace('\n', '')
|
||||
passphrase=kwargs['public_key_passphrase'])).replace('\n', '')
|
||||
|
||||
# Remove system entries in kwargs
|
||||
# Including listen_in and preqreuired because they are not included
|
||||
|
|
Loading…
Add table
Reference in a new issue