mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
lint fixes
This commit is contained in:
parent
54bb1e5e03
commit
07260db514
@ -393,7 +393,7 @@ class Auth(object):
|
||||
syndic_finger = self.opts.get('syndic_finger', self.opts.get('master_finger', False))
|
||||
if syndic_finger:
|
||||
if salt.utils.pem_finger(m_pub_fn) != syndic_finger:
|
||||
_finger_fail(syndic_finger, m_pub_fn)
|
||||
self._finger_fail(syndic_finger, m_pub_fn)
|
||||
else:
|
||||
if self.opts.get('master_finger', False):
|
||||
if salt.utils.pem_finger(m_pub_fn) != self.opts['master_finger']:
|
||||
@ -401,7 +401,7 @@ class Auth(object):
|
||||
auth['publish_port'] = payload['publish_port']
|
||||
return auth
|
||||
|
||||
def _finger_fail(finger, master_key):
|
||||
def _finger_fail(self, finger, master_key):
|
||||
log.critical(
|
||||
'The specified fingerprint in the master configuration '
|
||||
'file:\n{0}\nDoes not match the authenticating master\'s '
|
||||
|
@ -329,7 +329,8 @@ class DefaultOrderedDict(OrderedDict):
|
||||
import copy
|
||||
return type(self)(self.default_factory,
|
||||
copy.deepcopy(self.items()))
|
||||
def __repr__(self):
|
||||
|
||||
def __repr__(self, _repr_running={}): # pylint: disable=W0102
|
||||
return 'DefaultOrderedDict(%s, %s)' % (self.default_factory,
|
||||
super(DefaultOrderedDict,
|
||||
super(DefaultOrderedDict,
|
||||
self).__repr__())
|
||||
|
Loading…
Reference in New Issue
Block a user