Fix breakage in tcp server

This commit is contained in:
Mike Place 2015-11-12 11:56:25 -07:00
parent 224602437a
commit 755d493bed

View file

@ -82,9 +82,11 @@ class AsyncTCPReqChannel(salt.transport.client.ReqChannel):
@classmethod
def __key(cls, opts, **kwargs):
if 'master_uri' in kwargs:
opts['master_uri'] = kwargs['master_uri']
return (opts['pki_dir'], # where the keys are stored
opts['id'], # minion ID
kwargs.get('master_uri') or opts.get('master_uri'), # master ID
opts['master_uri'],
kwargs.get('crypt', 'aes'), # TODO: use the same channel for crypt
)