Juniper / jsnapy

Python version of Junos Snapshot Administrator
Apache License 2.0
115 stars 58 forks source link

Add support for Environment variables JSNAPY_PASSWORD and JSNAPY_USERNAME #407

Open jason-d-hall opened 1 year ago

jason-d-hall commented 1 year ago

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