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.
more_events
Javier Sánchez Parra 2020-04-16 13:53:13 +02:00
parent f0c550ee2a
commit eec50f777c
1 changed files with 4 additions and 0 deletions

View File

@ -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')