From 77eb2e094e895a9ae5ea7e3d3c9d542a553455bd Mon Sep 17 00:00:00 2001 From: ddivins Date: Wed, 8 Jun 2022 22:20:06 -0600 Subject: [PATCH] Address issue #400 Issue #400 fix, line 669 remove "and action None" from else statement to allow password prompt to appear Note, I do not know if this has implications outside my scenarios but all my tests are working as expected --- lib/jnpr/jsnapy/jsnapy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jnpr/jsnapy/jsnapy.py b/lib/jnpr/jsnapy/jsnapy.py index 999d0942..0197761b 100755 --- a/lib/jnpr/jsnapy/jsnapy.py +++ b/lib/jnpr/jsnapy/jsnapy.py @@ -666,7 +666,7 @@ def connect( try: dev.open() except ConnectAuthError as ex: - if password is None and action is None: + if password is None: password = getpass.getpass( "\nEnter Password for username <%s> : " % username )