Skip to content
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

Add support for Environment variables JSNAPY_PASSWORD and JSNAPY_USERNAME #407

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jason-d-hall
Copy link

What does this PR do?

Adds functions, tests, and documentation for class methods
SnapAdmin.get_device_login()
SnapAdmin.get_device_passwd()

What issues does this PR fix or reference?

NO PR / I had a use case for SnapAdmin pulling username and password from environment variables.

Previous Behavior

Pulled password from command line or the inventory

New Behavior

Still pulls from command line or inventory, but with an added check of the environment variables
JSNAPY_USER and JSNAPY_PASSWORD

Tests written?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant