mirror of https://git.48k.eu/ogclient
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
parent
f0c550ee2a
commit
eec50f777c
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue