Commit 978c5164 authored by Cédric de Saint Martin's avatar Cédric de Saint Martin Committed by Cédric Le Ninivin

Raise NotFoundError, like in SlapOS Master

parent df0c78f6
...@@ -158,7 +158,7 @@ def getFullComputerInformation(): ...@@ -158,7 +158,7 @@ def getFullComputerInformation():
partition)) partition))
return xml_marshaller.xml_marshaller.dumps(slap_computer) return xml_marshaller.xml_marshaller.dumps(slap_computer)
else: else:
raise UnauthorizedError, "Only accept request for: %s" % \ raise NotFoundError, "Only accept request for: %s" % \
app.config['computer_id'] app.config['computer_id']
@app.route('/setComputerPartitionConnectionXml', methods=['POST']) @app.route('/setComputerPartitionConnectionXml', methods=['POST'])
......
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