From 83aee2b39f4259b29a9a269874a853e6560bbe01 Mon Sep 17 00:00:00 2001 From: richardsonky <52711804+richardsonky@users.noreply.github.com> Date: Tue, 11 Apr 2023 15:51:49 -0500 Subject: [PATCH] Update aws_ssm.py remove trailing spaces --- plugins/connection/aws_ssm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/connection/aws_ssm.py b/plugins/connection/aws_ssm.py index 46d46c03786..1a20dc8db68 100644 --- a/plugins/connection/aws_ssm.py +++ b/plugins/connection/aws_ssm.py @@ -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):