only pull eauth value from the token object

This commit is contained in:
Thomas S Hatch 2013-08-12 11:07:35 -06:00
parent 6497cb870e
commit b2685cd554

View File

@ -1778,7 +1778,7 @@ class ClearFuncs(object):
log.warning('Authentication failure of type "token" occurred.') log.warning('Authentication failure of type "token" occurred.')
return '' return ''
good = self.ckminions.runner_check( good = self.ckminions.runner_check(
self.opts['external_auth'][clear_load['eauth']][token['name']] if token['name'] in self.opts['external_auth'][clear_load['eauth']] else self.opts['external_auth'][token['eauth']]['*'], self.opts['external_auth'][token['eauth']][token['name']] if token['name'] in self.opts['external_auth'][token['eauth']] else self.opts['external_auth'][token['eauth']]['*'],
clear_load['fun']) clear_load['fun'])
if not good: if not good:
msg = ('Authentication failure of type "eauth" occurred for ' msg = ('Authentication failure of type "eauth" occurred for '