From af1ab34aa33bfa19e964b5a7e8ae1d4751e947d9 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Thu, 7 Jul 2022 10:24:33 +0200 Subject: [PATCH] Island: Return a list in Propagation Credentials endpoint --- monkey/monkey_island/cc/resources/propagation_credentials.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)