summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index ac312f2..77a5d5d 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -120,9 +120,9 @@ class ogThread():
client.send(response.get())
client.disconnect()
- def software(client, request, path, ogRest):
+ def software(client, request, ogRest):
try:
- software = ogRest.operations.software(request, path, ogRest)
+ software = ogRest.operations.software(request, ogRest)
except Exception as e:
ogRest.send_internal_server_error(client, exc=e)
return
@@ -178,12 +178,10 @@ class ogThread():
client.send(response.get())
ogRest.state = ThreadState.IDLE
- def image_create(client, path, request, ogRest):
+ def image_create(client, request, ogRest):
try:
- image_info = ogRest.operations.image_create(path,
- request,
- ogRest)
- software = ogRest.operations.software(request, path, ogRest)
+ image_info = ogRest.operations.image_create(request, ogRest)
+ software = ogRest.operations.software(request, ogRest)
except Exception as e:
ogRest.send_internal_server_error(client, exc=e)
return
@@ -394,8 +392,7 @@ class ogRest():
threading.Thread(target=ogThread.session, args=(client, request, self,)).start()
def process_software(self, client, request):
- path = '/tmp/CSft-' + client.ip + '-' + str(request.getPartition())
- threading.Thread(target=ogThread.software, args=(client, request, path, self,)).start()
+ threading.Thread(target=ogThread.software, args=(client, request, self,)).start()
def process_hardware(self, client):
threading.Thread(target=ogThread.hardware, args=(client, self,)).start()
@@ -420,8 +417,7 @@ class ogRest():
sys.exit(0)
def process_imagecreate(self, client, request):
- path = '/tmp/CSft-' + client.ip + '-' + request.getPartition()
- threading.Thread(target=ogThread.image_create, args=(client, path, request, self,)).start()
+ threading.Thread(target=ogThread.image_create, args=(client, request, self,)).start()
def process_refresh(self, client):
threading.Thread(target=ogThread.refresh, args=(client, self,)).start()