Commit 47d81bef authored by Xavier Thompson's avatar Xavier Thompson

Proxy: Fix unready forwarded requests causing crash

See merge request !490
parents 88a0dc7a 88260036
...@@ -714,6 +714,11 @@ def forwardRequestToExternalMaster(master_url, request_form): ...@@ -714,6 +714,11 @@ def forwardRequestToExternalMaster(master_url, request_form):
partition._master_url = master_url # type: ignore partition._master_url = master_url # type: ignore
partition._connection_helper = None partition._connection_helper = None
partition._software_release_document = request_form['software_release'] # type: ignore partition._software_release_document = request_form['software_release'] # type: ignore
if partition._request_dict is not None:
# ResourceNotReady
abort(408)
return dumps(partition) return dumps(partition)
def getAllocatedInstance(partition_reference): def getAllocatedInstance(partition_reference):
......
...@@ -469,7 +469,7 @@ class ComputerPartition(SlapRequester): ...@@ -469,7 +469,7 @@ class ComputerPartition(SlapRequester):
self._updateTransactionFile(partition_reference=None) self._updateTransactionFile(partition_reference=None)
def __getinitargs__(self): def __getinitargs__(self):
return (self._computer_id, self._partition_id, ) return (self._computer_id, self._partition_id, self._request_dict)
def _updateTransactionFile(self, partition_reference=None): def _updateTransactionFile(self, partition_reference=None):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment