Don't request creds if auth with key.

This commit is contained in:
Dmitry Kuzmenko 2015-10-29 18:32:58 +03:00
parent d284eb165b
commit b7b5bec309

View File

@ -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: