mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Use the loader, not the loadauth class
This commit is contained in:
parent
014d025d28
commit
08bd292ed4
@ -134,7 +134,7 @@ class Resolver(object):
|
||||
'''
|
||||
def __init__(self, opts):
|
||||
self.opts = opts
|
||||
self.loadauth = LoadAuth(opts)
|
||||
self.auth = salt.loader.auth(opts)
|
||||
|
||||
def cli(self, eauth):
|
||||
'''
|
||||
@ -146,12 +146,12 @@ class Resolver(object):
|
||||
print 'External authentication system has not been specified'
|
||||
return ret
|
||||
fstr = '{0}.auth'.format(eauth)
|
||||
if not fstr in self.loadauth:
|
||||
if not fstr in self.auth:
|
||||
print ('The specified external authentication system "{0}" is '
|
||||
'not available').format(eauth)
|
||||
return ret
|
||||
|
||||
args = salt.utils.arg_lookup(self.loadauth[fstr])
|
||||
args = salt.utils.arg_lookup(self.auth[fstr])
|
||||
for arg in args['args']:
|
||||
if arg.startswith('pass'):
|
||||
ret[arg] = getpass.getpass('{0}: '.format(arg))
|
||||
|
Loading…
Reference in New Issue
Block a user