Skip to content

Commit

Permalink
Update aws_ssm.py
Browse files Browse the repository at this point in the history
remove trailing spaces
  • Loading branch information
richardsonky authored Apr 11, 2023
1 parent 828f26a commit 83aee2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/connection/aws_ssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,11 +740,10 @@ def _filter_ansi(self, line):
line = line.replace('\r\r\n', '\n')
if len(line) == 201:
line = line[:-1]

# Remove ansi escape sequences:
ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])')
line = ansi_escape.sub('', line)

return line

def _flush_stderr(self, session_process):
Expand Down

0 comments on commit 83aee2b

Please sign in to comment.