Skip to content

Commit

Permalink
Address issue Juniper#400
Browse files Browse the repository at this point in the history
Issue Juniper#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
  • Loading branch information
ddivins committed Jun 9, 2022
1 parent d3c0cdd commit 77eb2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jnpr/jsnapy/jsnapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 77eb2e0

Please sign in to comment.