Skip to content

support for allow_agent parameter#1386

Closed
chidanandpujar wants to merge 2 commits into
Juniper:masterfrom
chidanandpujar:pyezsshagent1
Closed

support for allow_agent parameter#1386
chidanandpujar wants to merge 2 commits into
Juniper:masterfrom
chidanandpujar:pyezsshagent1

Conversation

@chidanandpujar
Copy link
Copy Markdown
Collaborator

Support for allow_agent parameter
#1385
#1285
#1353

Comment thread lib/jnpr/junos/device.py
allow_agent = bool(
(self._auth_password is None) and (self._ssh_private_key_file is None)
)
if self._allow_agent is True:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please modify the code

if self._allow_agent is not None:
allow_agent = self._allow_agent
else:
# Default: only allow agent if no password and no private key are provided
allow_agent = self._auth_password is None and self._ssh_private_key_file is None

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I will check

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.

2 participants