-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling jsnapy without username and password causes exception instead of prompt #400
Comments
Problem is in snappy.py line 669:
This if statement is not met, if we remove "and action is None" this solves my issue, snippet:
Problem is I have no idea what that "and action is None" is there for or doing so I do not know the safety of removing it. |
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
issue is fixed #402 jsnapy --snap pre -f common_config.yml -v Enter User name: xyz Enter Password for username : /jsnapy_test1/jsnapy# jsnapy --version |
issue is fixed #402 , hence closing this issue for now, Thanks |
Description of Issue/Question
When running snap and not providing username or password in config.yml or command line, snap will prompt for username and then error out with exceptions and tracebacks and never as for a password, ending with:
Exception: ConnectAuthError(172.25.92.59)
Setup
config_check.yml:
Command:
jsnapy --snap pre -f config_check.yml -v
Note, no username/password is provided
Steps to Reproduce Issue
Run the above and the below is the output:
Versions Report
The text was updated successfully, but these errors were encountered: