diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-04-16 13:53:13 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-04-16 13:53:13 +0200 |
commit | eec50f777c160c797cdd76c8188705540ae439ef (patch) | |
tree | 4f86672fd0872170daed7892ff04bae41cc06c94 /src | |
parent | f0c550ee2a8bed2238a1fe9fdf83ce1f7b229377 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/linux/ogOperations.py | 4 |
1 files changed, 4 insertions, 0 deletions
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') |