mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #30998 from dmacvicar/dmacvicar-2015.8-27796
add_key/reject_key: do not crash w/Permission denied: '/var/cache/salt/master/.dfn' (#27796)
This commit is contained in:
commit
0dcdd0a2a7
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ def dropfile(cachedir, user=None):
|
|||
mask = os.umask(191)
|
||||
try:
|
||||
log.info('Rotating AES key')
|
||||
if os.path.isfile(dfn):
|
||||
log.info('AES key rotation already requested')
|
||||
return
|
||||
|
||||
with salt.utils.fopen(dfn, 'wb+') as fp_:
|
||||
fp_.write('')
|
||||
|
|
Loading…
Add table
Reference in a new issue