1
0
Эх сурвалжийг харах

Avoid password prompt when using eauth=kerberos

Simon Lundström 5 жил өмнө
parent
commit
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: