forked from p15670423/monkey
Island: Simplify propagation credentials get return
This commit is contained in:
parent
43387dc1a5
commit
f1e00dd3ee
|
@ -26,7 +26,7 @@ class PropagationCredentials(AbstractResource):
|
||||||
else:
|
else:
|
||||||
return {}, HTTPStatus.NOT_FOUND
|
return {}, HTTPStatus.NOT_FOUND
|
||||||
|
|
||||||
return make_response(Credentials.to_json_array(propagation_credentials), HTTPStatus.OK)
|
return propagation_credentials, HTTPStatus.OK
|
||||||
|
|
||||||
def post(self, collection=None):
|
def post(self, collection=None):
|
||||||
credentials = [Credentials.from_json(c) for c in request.json]
|
credentials = [Credentials.from_json(c) for c in request.json]
|
||||||
|
|
Loading…
Reference in New Issue