Skip to content

Commit

Permalink
Merge pull request #3108 from robertcheramy/2997-asa-context
Browse files Browse the repository at this point in the history
Fix wrong regexp to get ride of \r
  • Loading branch information
robertcheramy committed Mar 18, 2024
2 parents 50bae60 + 273b755 commit 44b09d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oxidized/input/ssh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def cmd(cmd, expect = node.prompt)
cmd_output = if @exec
@ssh.exec! cmd
else
cmd_shell(cmd, expect).gsub("/\r\n/", "\n")
cmd_shell(cmd, expect).gsub("\r\n", "\n")
end
# Make sure we return a String
cmd_output.to_s
Expand Down

0 comments on commit 44b09d1

Please sign in to comment.