From 2e1fddf2e7d726554f3f5bcb8800e36fda2d57e6 Mon Sep 17 00:00:00 2001 From: Peng Lu Date: Fri, 27 Dec 2024 11:04:06 +0800 Subject: [PATCH] Invalid parameter was provided when using shell.call in HostInfo.py --- ambari-agent/src/main/python/ambari_agent/HostInfo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ambari-agent/src/main/python/ambari_agent/HostInfo.py b/ambari-agent/src/main/python/ambari_agent/HostInfo.py index 45c75f23eee..c981c9036e4 100644 --- a/ambari-agent/src/main/python/ambari_agent/HostInfo.py +++ b/ambari-agent/src/main/python/ambari_agent/HostInfo.py @@ -461,8 +461,7 @@ def getServiceStatus(self, service_name): stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=5, - quiet=True, - universal_newlines=True, + quiet=True ) return out, err, code except Exception as ex: