From 93dce43e8643c9dc79fadd546426d9434ae6e534 Mon Sep 17 00:00:00 2001 From: Olle Lundberg Date: Thu, 28 Feb 2013 12:36:21 +0100 Subject: [PATCH] Fix argument passed to LazyFqdn --- paramiko/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paramiko/config.py b/paramiko/config.py index f5486b9..2bac6c2 100644 --- a/paramiko/config.py +++ b/paramiko/config.py @@ -50,6 +50,7 @@ class LazyFqdn(object): # # Handle specific option + fqdn = None address_family = self.config.get('addressfamily', 'any').lower() if address_family != 'any': family = socket.AF_INET if address_family == 'inet' else socket.AF_INET6 @@ -207,7 +208,7 @@ class SSHConfig (object): remoteuser = user host = socket.gethostname().split('.')[0] - fqdn = LazyFqdn(self) + fqdn = LazyFqdn(config) homedir = os.path.expanduser('~') replacements = {'controlpath': [