mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix #1332
This commit is contained in:
parent
fa32dc78ec
commit
da5c356806
@ -44,7 +44,13 @@ def clean_old_key(rsa_path):
|
||||
import win32api
|
||||
import win32con
|
||||
win32api.SetFileAttributes(rsa_path, win32con.FILE_ATTRIBUTE_NORMAL)
|
||||
mkey.save_key(rsa_path, None)
|
||||
try:
|
||||
mkey.save_key(rsa_path, None)
|
||||
except IOError:
|
||||
log.error(
|
||||
('Failed to update old RSA format for key {0}, future '
|
||||
'releases may not be able to use this key').format(rsa_path)
|
||||
)
|
||||
# Set read-only permission for minion.pem file
|
||||
if sys.platform == 'win32':
|
||||
import win32api
|
||||
|
Loading…
Reference in New Issue
Block a user