summaryrefslogtreecommitdiffstats
path: root/src/linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/ogOperations.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py
index 7f70f2b..204699a 100644
--- a/src/linux/ogOperations.py
+++ b/src/linux/ogOperations.py
@@ -239,9 +239,22 @@ class OgLinuxOperations:
except:
raise ValueError('Error: Incorrect command value')
+ with open('/tmp/image.info') as file_info:
+ line = file_info.readline().rstrip()
+
+ image_info = {}
+
+ (image_info['clonator'],
+ image_info['compressor'],
+ image_info['filesystem'],
+ image_info['datasize'],
+ image_info['clientname']) = line.split(':', 5)
+
+ os.remove('/tmp/image.info')
+
self._restartBrowser(self._url)
- return output.decode('utf-8')
+ return image_info
def refresh(self, ogRest):
self._restartBrowser(self._url_log)