From c9b10bfc3f70a8e9e3e9d84d67558e413098a3c4 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Thu, 21 Jul 2022 12:58:31 +0530 Subject: [PATCH] BB: Fix API endpoints in MonkeyIslandClient --- .../monkey_zoo/blackbox/island_client/monkey_island_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py index cba01a488..f3ac3e8c2 100644 --- a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py +++ b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py @@ -27,11 +27,11 @@ class MonkeyIslandClient(object): return self.requests.get("api") def get_config(self): - return json.loads(self.requests.get("api/configuration/island").content) + return json.loads(self.requests.get("api/agent-configuration").content) @avoid_race_condition def import_config(self, config_contents): - _ = self.requests.post("api/configuration/island", data=config_contents) + _ = self.requests.post("api/agent-configuration", data=config_contents) @avoid_race_condition def run_monkey_local(self):