From 8f6cca7ac5295c28d30ec51b14c2d49eb52bb29b Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Thu, 13 Jan 2022 06:18:13 +0000 Subject: [PATCH] Silence ecs execute command session manager plugin check --- awscli/customizations/ecs/executecommand.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awscli/customizations/ecs/executecommand.py b/awscli/customizations/ecs/executecommand.py index a578c73734c4..9664125f1d5d 100644 --- a/awscli/customizations/ecs/executecommand.py +++ b/awscli/customizations/ecs/executecommand.py @@ -13,6 +13,7 @@ import logging import json import errno +import os from subprocess import check_call from awscli.compat import ignore_user_entered_signals @@ -83,7 +84,7 @@ def invoke(self, service_name, operation_name, parameters, parsed_globals): # before calling execute-command to ensure that # session-manager-plugin is installed # before execute-command-command is made - check_call(["session-manager-plugin"]) + check_call(["session-manager-plugin"], stdout=open(os.devnull, 'wb')) client = self._session.create_client( service_name, region_name=parsed_globals.region, endpoint_url=parsed_globals.endpoint_url,