From 646b3a1b46ebc760d85fbb0b3044b54ae66d31b5 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 6 Sep 2022 15:22:03 -0400 Subject: [PATCH] BB: Add `simplify=True` to Credentials serialization --- 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 d8243fcfe..351de3c32 100644 --- a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py +++ b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py @@ -61,7 +61,7 @@ class MonkeyIslandClient(object): @avoid_race_condition def _import_credentials(self, propagation_credentials: List[Credentials]): serialized_propagation_credentials = [ - credentials.dict() for credentials in propagation_credentials + credentials.dict(simplify=True) for credentials in propagation_credentials ] response = self.requests.put_json( "/api/propagation-credentials/configured-credentials",