From 2e3d47b7b8db69edb5d550ccc4a46fd6512fc031 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Fri, 17 Apr 2020 16:59:48 +0200 Subject: Avoid writting /software output to a file --- src/linux/ogOperations.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/linux') diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index fcbcc69..d0bbeeb 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -117,7 +117,10 @@ class OgLinuxOperations: except: raise ValueError('Error: Incorrect command value') - return output.decode('utf-8') + software = '' + with open(path, 'r') as f: + software = f.read() + return software def hardware(self, path, ogRest): try: -- cgit v1.2.3-18-g5258