diff --git a/monkey/monkey_island/cc/resources/propagation_credentials.py b/monkey/monkey_island/cc/resources/propagation_credentials.py index 43dca03ba..8b14e9b1f 100644 --- a/monkey/monkey_island/cc/resources/propagation_credentials.py +++ b/monkey/monkey_island/cc/resources/propagation_credentials.py @@ -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)