mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge branch '2016.3' into '2016.11'
Conflicts: - salt/crypt.py
This commit is contained in:
commit
d5576d75e7
5
doc/topics/releases/2016.3.7.rst
Normal file
5
doc/topics/releases/2016.3.7.rst
Normal file
@ -0,0 +1,5 @@
|
||||
===========================
|
||||
Salt 2016.3.7 Release Notes
|
||||
===========================
|
||||
|
||||
Version 2016.3.7 is a bugfix release for :ref:`2016.3.0 <release-2016-3-0>`.
|
@ -886,7 +886,8 @@ class AsyncAuth(object):
|
||||
m_pub_fn = os.path.join(self.opts['pki_dir'], self.mpub)
|
||||
m_pub_exists = os.path.isfile(m_pub_fn)
|
||||
if m_pub_exists and master_pub and not self.opts['open_mode']:
|
||||
local_master_pub = salt.utils.fopen(m_pub_fn).read()
|
||||
with salt.utils.fopen(m_pub_fn) as fp_:
|
||||
local_master_pub = fp_.read()
|
||||
|
||||
if payload['pub_key'].replace('\n', '').replace('\r', '') != \
|
||||
local_master_pub.replace('\n', '').replace('\r', ''):
|
||||
@ -936,9 +937,8 @@ class AsyncAuth(object):
|
||||
if not m_pub_exists:
|
||||
# the minion has not received any masters pubkey yet, write
|
||||
# the newly received pubkey to minion_master.pub
|
||||
salt.utils.fopen(m_pub_fn, 'wb+').write(
|
||||
salt.utils.to_bytes(payload['pub_key'])
|
||||
)
|
||||
with salt.utils.fopen(m_pub_fn, 'wb+') as fp_:
|
||||
fp_.write(salt.utils.to_bytes(payload['pub_key']))
|
||||
return self.extract_aes(payload, master_pub=False)
|
||||
|
||||
def _finger_fail(self, finger, master_key):
|
||||
|
@ -319,7 +319,7 @@ def check_password(name, password, runas=None):
|
||||
if server_version is None:
|
||||
raise ValueError
|
||||
|
||||
server_version = server_version.group(1)
|
||||
server_version = server_version.group(1).split('-')[0]
|
||||
version = [int(i) for i in server_version.split('.')]
|
||||
except ValueError:
|
||||
version = (0, 0, 0)
|
||||
|
@ -594,6 +594,7 @@ def dependency_information(include_salt_cloud=False):
|
||||
('python-gnupg', 'gnupg', '__version__'),
|
||||
('mysql-python', 'MySQLdb', '__version__'),
|
||||
('cherrypy', 'cherrypy', '__version__'),
|
||||
('docker-py', 'docker', '__version__'),
|
||||
]
|
||||
|
||||
if include_salt_cloud:
|
||||
|
Loading…
Reference in New Issue
Block a user