From f494349b611198067522dfde8882532d40b132c9 Mon Sep 17 00:00:00 2001 From: Zachary Karpinski Date: Tue, 24 Dec 2024 13:51:06 -0500 Subject: [PATCH] change settings to deep copy --- moto/ds/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moto/ds/models.py b/moto/ds/models.py index c9ce45e116bd..48146c12c612 100644 --- a/moto/ds/models.py +++ b/moto/ds/models.py @@ -1,5 +1,6 @@ """DirectoryServiceBackend class with methods for supported APIs.""" +import copy from typing import Any, Dict, List, Optional, Tuple from moto.core.base_backend import BackendDict, BaseBackend @@ -141,7 +142,7 @@ def __init__( self.ldaps_settings_info: List[LdapsSettingInfo] = [] self.trusts: List[Trust] = [] self.settings = ( - SETTINGS_ENTRIES_MODEL.copy() + copy.deepcopy(SETTINGS_ENTRIES_MODEL) if self.directory_type == "MicrosoftAD" else [] )