From 7db9179a0d39d1b416b149ac738d16cc7405594f Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 14 Jul 2020 16:57:01 +0200 Subject: [PATCH] correct iossue --- script/script/check_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/script/check_service.py b/script/script/check_service.py index 0d3f6f7..75e0749 100644 --- a/script/script/check_service.py +++ b/script/script/check_service.py @@ -47,9 +47,9 @@ class Container(object): try: proc=subprocess.check_output([cmd,'ps'],stderr=subprocess.STDOUT) except: - proc="" + proc=b'' pass - + proc.decode('UTF-8') if (proc.find(self.name) != -1): return True else: @@ -61,7 +61,7 @@ if __name__ == '__main__': time.sleep(60) for serviceName in services: - serviceObj=Service("serviceName") + serviceObj=Service(serviceName) if (serviceObj.is_active()): print (f"{serviceObj.name} is active") else: