mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't request creds if auth with key.
This commit is contained in:
parent
d284eb165b
commit
b7b5bec309
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue