Skip to content

Commit

Permalink
Fix argument passed to LazyFqdn
Browse files Browse the repository at this point in the history
  • Loading branch information
lndbrg committed Feb 28, 2013
1 parent 3876798 commit 93dce43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paramiko/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __str__(self):
#

# 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
Expand Down Expand Up @@ -207,7 +208,7 @@ def _expand_variables(self, config, hostname):
remoteuser = user

host = socket.gethostname().split('.')[0]
fqdn = LazyFqdn(self)
fqdn = LazyFqdn(config)
homedir = os.path.expanduser('~')
replacements = {'controlpath':
[
Expand Down

0 comments on commit 93dce43

Please sign in to comment.