Skip to content

Commit

Permalink
[#61650] Strip spaces from ssh config parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
0x416e746f6e authored and garethgreenaway committed Oct 6, 2022
1 parent 6a2cb1e commit ee969de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/roster/sshconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ee969de

Please sign in to comment.