Commit 9e062ce2 authored by Marco Mariani's avatar Marco Mariani

softwareInstanceRename()

parent 360adef0
...@@ -272,6 +272,17 @@ def requestComputerPartition(): ...@@ -272,6 +272,17 @@ def requestComputerPartition():
else: else:
return request_slave() return request_slave()
@app.route('/softwareInstanceRename', methods=['POST'])
def softwareInstanceRename():
new_name = request.form['new_name'].encode()
computer_partition_id = request.form['computer_partition_id'].encode()
q = 'UPDATE %s SET partition_reference = ? WHERE reference = ?'
execute_db('partition', q, [new_name, computer_partition_id])
return 'done'
def request_not_shared(): def request_not_shared():
software_release = request.form['software_release'].encode() software_release = request.form['software_release'].encode()
# some supported parameters # some supported parameters
......
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