Pārlūkot izejas kodu

Avoid password prompt when using eauth=kerberos

Simon Lundström 5 gadi atpakaļ
vecāks
revīzija
6b2f2f2d46
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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: