mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Don't request creds if auth with key.
This commit is contained in:
parent
d284eb165b
commit
b7b5bec309
@ -139,7 +139,7 @@ class SaltCMD(parsers.SaltCMDOptionParser):
|
||||
|
||||
# If using eauth and a token hasn't already been loaded into
|
||||
# kwargs, prompt the user to enter auth credentials
|
||||
if 'token' not in kwargs and self.options.eauth:
|
||||
if 'token' not in kwargs and 'key' not in kwargs and self.options.eauth:
|
||||
resolver = salt.auth.Resolver(self.config)
|
||||
res = resolver.cli(self.options.eauth)
|
||||
if self.options.mktoken and res:
|
||||
|
Loading…
Reference in New Issue
Block a user