From 0752fdb5e476d9203b26953d54aea40874281403 Mon Sep 17 00:00:00 2001 From: Ahmed Bilal Khalid Date: Wed, 28 Aug 2019 13:23:46 +0500 Subject: [PATCH] a --- app/helper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/helper.py b/app/helper.py index 45a1048..0cc7d8b 100644 --- a/app/helper.py +++ b/app/helper.py @@ -96,7 +96,6 @@ def get_distro_name(): start = content.find("ID=") + 3 end = content.find("\n", start) distro_name = content[start:end] - print(distro_name) return distro_name class PackageManagementOperation(object): @@ -109,7 +108,7 @@ class PackageManagementOperation(object): else: assert "Unknown Distro" - subprocess.check_output(distro) + subprocess.check_output(distro.split()) except Exception as e: print(e) return Result(e, ResultType.failure, inspect.currentframe().f_code.co_name)