mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
parent
40843b35f1
commit
690d4dea5c
@ -297,7 +297,9 @@ class MinionBase(object):
|
||||
self._init_context_and_poller()
|
||||
|
||||
hash_type = getattr(hashlib, self.opts.get('hash_type', 'md5'))
|
||||
id_hash = hash_type(self.opts['id']).hexdigest()[:10]
|
||||
id_hash = hash_type(self.opts['id']).hexdigest()
|
||||
if self.opts.get('hash_type', 'md5') == 'sha256':
|
||||
id_hash = id_hash[:10]
|
||||
epub_sock_path = os.path.join(
|
||||
self.opts['sock_dir'],
|
||||
'minion_event_{0}_pub.ipc'.format(id_hash)
|
||||
|
Loading…
Reference in New Issue
Block a user