Skip to content

Commit

Permalink
change settings to deep copy
Browse files Browse the repository at this point in the history
  • Loading branch information
zkarpinski committed Dec 24, 2024
1 parent 1e4364d commit f494349
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 f494349

Please sign in to comment.