mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
enable open mode for the minion authentication
This commit is contained in:
parent
d376f4b988
commit
ffd9dd616c
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class Auth(object):
|
|||
tmp_pub = tempfile.mktemp()
|
||||
open(tmp_pub, 'w+').write(master_pub)
|
||||
m_pub_fn = os.path.join(self.opts['pki_dir'], 'master.pub')
|
||||
if os.path.isfile(m_pub_fn):
|
||||
if os.path.isfile(m_pub_fn) and not self.opts['open_mode']:
|
||||
local_master_pub = open(m_pub_fn).read()
|
||||
if not master_pub == local_master_pub:
|
||||
# This is not the last master we connected to
|
||||
|
|
Loading…
Add table
Reference in a new issue