mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #46141 from rallytime/bp-46123
Back-port #46123 to oxygen.rc1
This commit is contained in:
commit
2934d55c0b
@ -419,6 +419,10 @@ class AESReqServerMixin(object):
|
|||||||
log.debug('Host key change detected in open mode.')
|
log.debug('Host key change detected in open mode.')
|
||||||
with salt.utils.files.fopen(pubfn, 'w+') as fp_:
|
with salt.utils.files.fopen(pubfn, 'w+') as fp_:
|
||||||
fp_.write(load['pub'])
|
fp_.write(load['pub'])
|
||||||
|
elif not load['pub']:
|
||||||
|
log.error('Public key is empty: {0}'.format(load['id']))
|
||||||
|
return {'enc': 'clear',
|
||||||
|
'load': {'ret': False}}
|
||||||
|
|
||||||
pub = None
|
pub = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user