mirror of https://git.48k.eu/ogclient
live: replace getConfiguration with refresh
Old refresh was a wrapper around getConfiguration bash script.
New refresh operation does what getConfiguration used to do
externally. See commit 097769b971
.
more_events
parent
6c441e94e2
commit
1ab981a539
|
@ -145,9 +145,7 @@ class OgLiveOperations:
|
||||||
except:
|
except:
|
||||||
raise ValueError('Error: Incorrect command value')
|
raise ValueError('Error: Incorrect command value')
|
||||||
|
|
||||||
cmd_get_conf = f'{ogClient.OG_PATH}interfaceAdm/getConfiguration'
|
self.refresh(ogRest)
|
||||||
result = subprocess.check_output([cmd_get_conf], shell=True)
|
|
||||||
self._restartBrowser(self._url)
|
|
||||||
|
|
||||||
return output.decode('utf-8')
|
return output.decode('utf-8')
|
||||||
|
|
||||||
|
@ -235,11 +233,9 @@ class OgLiveOperations:
|
||||||
except:
|
except:
|
||||||
raise ValueError('Error: Incorrect command value')
|
raise ValueError('Error: Incorrect command value')
|
||||||
|
|
||||||
cmd_get_conf = f'{ogClient.OG_PATH}interfaceAdm/getConfiguration'
|
result = self.refresh(ogRest)
|
||||||
result = subprocess.check_output([cmd_get_conf], shell=True)
|
|
||||||
self._restartBrowser(self._url)
|
|
||||||
|
|
||||||
return self.parseGetConf(result.decode('utf-8'))
|
return result
|
||||||
|
|
||||||
def image_restore(self, request, ogRest):
|
def image_restore(self, request, ogRest):
|
||||||
disk = request.getDisk()
|
disk = request.getDisk()
|
||||||
|
@ -265,9 +261,7 @@ class OgLiveOperations:
|
||||||
except:
|
except:
|
||||||
raise ValueError('Error: Incorrect command value')
|
raise ValueError('Error: Incorrect command value')
|
||||||
|
|
||||||
cmd_get_conf = f'{ogClient.OG_PATH}interfaceAdm/getConfiguration'
|
self.refresh(ogRest)
|
||||||
result = subprocess.check_output([cmd_get_conf], shell=True)
|
|
||||||
self._restartBrowser(self._url)
|
|
||||||
|
|
||||||
return output.decode('utf-8')
|
return output.decode('utf-8')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue