From ea369a5a74015f217c7e6e646dd8d74d020c138a Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 5 Aug 2022 09:21:28 -0400 Subject: [PATCH] BB: Use put_json() to import config --- envs/monkey_zoo/blackbox/island_client/monkey_island_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c8142404d..df97c6f23 100644 --- a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py +++ b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py @@ -40,7 +40,7 @@ class MonkeyIslandClient(object): @avoid_race_condition def _import_config(self, test_configuration: TestConfiguration): - response = self.requests.post_json( + response = self.requests.put_json( "api/agent-configuration", json=AgentConfiguration.to_mapping(test_configuration.agent_configuration), )