diff --git a/lib/jnpr/junos/device.py b/lib/jnpr/junos/device.py index 13c7b3ddc..01027cc47 100644 --- a/lib/jnpr/junos/device.py +++ b/lib/jnpr/junos/device.py @@ -245,7 +245,7 @@ def _sshconf_lkup(self): found = sshconf.lookup(self._hostname) self._hostname = found.get('hostname', self._hostname) self._port = found.get('port', self._port) - self._auth_user = found.get('user') + self._conf_auth_user = found.get('user') self._ssh_private_key_file = found.get('identityfile') return sshconf_path @@ -316,11 +316,12 @@ def __init__(self, *vargs, **kvargs): self._hostname = hostname # user will default to $USER self._auth_user = os.getenv('USER') + self._conf_auth_user = None # user can get updated by ssh_config self._ssh_config = kvargs.get('ssh_config') self._sshconf_path = self._sshconf_lkup() # but if user is explit from call, then use it. - self._auth_user = kvargs.get('user') or self._auth_user + self._auth_user = kvargs.get('user') or self._conf_auth_user or self._auth_user self._auth_password = kvargs.get('password') or kvargs.get('passwd') if not hasattr(self, '_ssh_private_key_file'): self._ssh_private_key_file = kvargs.get('ssh_private_key_file') diff --git a/lib/jnpr/junos/version.py b/lib/jnpr/junos/version.py index acf7f27af..d921452cf 100644 --- a/lib/jnpr/junos/version.py +++ b/lib/jnpr/junos/version.py @@ -1,2 +1,2 @@ -VERSION = "1.1.0" -DATE = "2015-Jan-14" +VERSION = "1.1.1" +DATE = "2015-Jan-22" diff --git a/setup.py b/setup.py index 63dd8a174..db8c763d7 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name="junos-eznc", namespace_packages=['jnpr'], - version="1.1.0", + version="1.1.1", author="Jeremy Schulman", author_email="jnpr-community-netdev@juniper.net", description=("Junos 'EZ' automation for non-programmers"),