瀏覽代碼

Avoid password prompt when using eauth=kerberos

Simon Lundström 5 年之前
父節點
當前提交
6b2f2f2d46
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      pepper/cli.py

+ 3 - 1
pepper/cli.py

@@ -411,7 +411,9 @@ class PepperCli(object):
         else:
             if self.options.username is not None:
                 results['SALTAPI_USER'] = self.options.username
-        if self.options.password is None and results['SALTAPI_PASS'] is None:
+        if self.options.password is None and \
+                results['SALTAPI_PASS'] is None and \
+                results['SALTAPI_EAUTH'] != 'kerberos':
             if self.options.interactive:
                 results['SALTAPI_PASS'] = getpass.getpass(prompt='Password: ')
             else: