Commit 71a5bf71 authored by Xavier Thompson's avatar Xavier Thompson

slapproxy: Fix Python2 syntax incompatibility

parent 46f2aac9
...@@ -1110,8 +1110,9 @@ def hateoas_partitions(partition_reference): ...@@ -1110,8 +1110,9 @@ def hateoas_partitions(partition_reference):
partition = execute_db('partition', 'SELECT * FROM %s WHERE partition_reference=?', [partition_reference], one=True) partition = execute_db('partition', 'SELECT * FROM %s WHERE partition_reference=?', [partition_reference], one=True)
if partition is None: if partition is None:
abort(404) abort(404)
partition['reference']=partition['partition_reference'] partition['reference'] = partition['partition_reference']
return hateoas_service_document(**partition, shared=0) partition['shared'] = 0
return hateoas_service_document(**partition)
@app.route('/hateoas/shared/<shared_reference>', methods=['GET']) @app.route('/hateoas/shared/<shared_reference>', methods=['GET'])
def hateoas_shared(shared_reference): def hateoas_shared(shared_reference):
......
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