From eec50f777c160c797cdd76c8188705540ae439ef Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 16 Apr 2020 13:53:13 +0200 Subject: Increase HTML menu regeneration cases We have observed that the ogLive browser did not show the changes when an image restoration o script execution was called. The problem was that the HTML menu was not updated/regenerated in these cases. This commit adds the call to the HTML regeneration function to image restore and script execution commands. This way, when the browser is restarted it loads the updated HTML menu. --- src/linux/ogOperations.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index 62e6a17..fcbcc69 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -79,6 +79,8 @@ class OgLinuxOperations: except: raise ValueError('Error: Incorrect command value') + cmd_get_conf = f'{ogConfig.OG_PATH}interfaceAdm/getConfiguration' + result = subprocess.check_output([cmd_get_conf], shell=True) self._restartBrowser() return output.decode('utf-8') @@ -181,6 +183,8 @@ class OgLinuxOperations: except: raise ValueError('Error: Incorrect command value') + cmd_get_conf = f'{ogConfig.OG_PATH}interfaceAdm/getConfiguration' + result = subprocess.check_output([cmd_get_conf], shell=True) self._restartBrowser() return output.decode('utf-8') -- cgit v1.2.3-18-g5258