Island: Return a list in Propagation Credentials endpoint

This commit is contained in:
Ilija Lazoroski 2022-07-07 10:24:33 +02:00
parent 777897cb74
commit af1ab34aa3
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
from flask import make_response
from flask import jsonify
from monkey_island.cc.repository import ICredentialsRepository
from monkey_island.cc.resources.AbstractResource import AbstractResource
@ -13,4 +13,4 @@ class PropagationCredentials(AbstractResource):
def get(self):
propagation_credentials = self._credentials_repository.get_all_credentials()
return make_response({"propagation_credentials": propagation_credentials})
return jsonify(propagation_credentials)