diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-04-17 16:59:48 +0200 |
---|---|---|
committer | Roberto Hueso Gómez <rhueso@soleta.eu> | 2020-04-17 16:59:48 +0200 |
commit | 2e3d47b7b8db69edb5d550ccc4a46fd6512fc031 (patch) | |
tree | 0993c5fb7a71cd039ba5b2ea930a0be228894ff0 /src/linux | |
parent | 7ccc4980147954b68829d5555fcc9e5b7dd2c4ec (diff) |
Avoid writting /software output to a file
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/ogOperations.py | 5 |
1 files changed, 4 insertions, 1 deletions
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: |