Skip to content

Commit

Permalink
Directory Service: change settings to deep copy (#8434)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkarpinski authored Dec 25, 2024
1 parent 4bfdfaf commit 9a62985
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moto/ds/models.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 []
)
Expand Down

0 comments on commit 9a62985

Please sign in to comment.