[#61650] Strip spaces from ssh config parameters

This commit is contained in:
Anton Bronnikov 2022-02-16 08:51:25 +01:00 committed by Gareth J. Greenaway
parent 6a2cb1e1df
commit ee969de055

View file

@ -64,7 +64,7 @@ def parse_ssh_config(lines):
for field in _ROSTER_FIELDS:
match = re.match(field.pattern, line)
if match:
target[field.target_field] = match.group(1)
target[field.target_field] = match.group(1).strip()
for hostname in hostnames:
targets[hostname] = target