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

slapproxy: Fix Python2 syntax incompatibility

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