Merge pull request #22689 from mgwilliams/tcp-key

make salt-key work with tcp transport
This commit is contained in:
Thomas S Hatch 2015-04-14 19:45:27 -06:00
commit c5f814bfdb
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ log = logging.getLogger(__name__)
def get_key(opts):
if opts['transport'] == 'zeromq':
if opts['transport'] in ('zeromq', 'tcp'):
return Key(opts)
else:
return RaetKey(opts)
@ -49,7 +49,7 @@ class KeyCLI(object):
'''
def __init__(self, opts):
self.opts = opts
if self.opts['transport'] == 'zeromq':
if self.opts['transport'] in ('zeromq', 'tcp'):
self.key = Key(opts)
else:
self.key = RaetKey(opts)
@ -650,7 +650,7 @@ class Key(object):
# We have to differentiate between RaetKey._check_minions_directories
# and Zeromq-Keys. Raet-Keys only have three states while ZeroMQ-keys
# havd an additional 'denied' state.
if self.opts['transport'] == 'zeromq':
if self.opts['transport'] in ('zeromq', 'tcp'):
key_dirs = self._check_minions_directories()
else:
key_dirs = self._check_minions_directories()

View File

@ -24,7 +24,7 @@ def output(data):
ident = 0
if __opts__.get('__multi_key'):
ident = 4
if __opts__['transport'] == 'zeromq':
if __opts__['transport'] in ('zeromq', 'tcp'):
acc = 'minions'
pend = 'minions_pre'
den = 'minions_denied'