Fix argument passed to LazyFqdn
This commit is contained in:
parent
38767982cd
commit
93dce43e86
|
@ -50,6 +50,7 @@ class LazyFqdn(object):
|
||||||
#
|
#
|
||||||
|
|
||||||
# Handle specific option
|
# Handle specific option
|
||||||
|
fqdn = None
|
||||||
address_family = self.config.get('addressfamily', 'any').lower()
|
address_family = self.config.get('addressfamily', 'any').lower()
|
||||||
if address_family != 'any':
|
if address_family != 'any':
|
||||||
family = socket.AF_INET if address_family == 'inet' else socket.AF_INET6
|
family = socket.AF_INET if address_family == 'inet' else socket.AF_INET6
|
||||||
|
@ -207,7 +208,7 @@ class SSHConfig (object):
|
||||||
remoteuser = user
|
remoteuser = user
|
||||||
|
|
||||||
host = socket.gethostname().split('.')[0]
|
host = socket.gethostname().split('.')[0]
|
||||||
fqdn = LazyFqdn(self)
|
fqdn = LazyFqdn(config)
|
||||||
homedir = os.path.expanduser('~')
|
homedir = os.path.expanduser('~')
|
||||||
replacements = {'controlpath':
|
replacements = {'controlpath':
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue