Skip to content
Snippets Groups Projects
Commit e6147bff9083 authored by Emre Yılmaz's avatar Emre Yılmaz
Browse files

updated config to be compatible with multiple localforward and remoteforward options.

parent 493ba6f48483
Branches
No related tags found
No related merge requests found
...@@ -126,6 +126,6 @@ ...@@ -126,6 +126,6 @@
self._config.append(host) self._config.append(host)
value = value.split() value = value.split()
host = {key: value, 'config': {}} host = {key: value, 'config': {}}
#identityfile is a special case, since it is allowed to be #identityfile, localforward, remoteforward keys are special cases, since they are allowed to be
# specified multiple times and they should be tried in order # specified multiple times and they should be tried in order
# of specification. # of specification.
...@@ -130,4 +130,5 @@ ...@@ -130,4 +130,5 @@
# specified multiple times and they should be tried in order # specified multiple times and they should be tried in order
# of specification. # of specification.
elif key == 'identityfile':
elif key in ['identityfile', 'localforward', 'remoteforward']:
if key in host['config']: if key in host['config']:
...@@ -133,3 +134,3 @@ ...@@ -133,3 +134,3 @@
if key in host['config']: if key in host['config']:
host['config']['identityfile'].append(value) host['config'][key].append(value)
else: else:
...@@ -135,5 +136,5 @@ ...@@ -135,5 +136,5 @@
else: else:
host['config']['identityfile'] = [value] host['config'][key] = [value]
elif key not in host['config']: elif key not in host['config']:
host['config'].update({key: value}) host['config'].update({key: value})
self._config.append(host) self._config.append(host)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment