From 29f7756428b1c2f3c6cae46d9ce1c87a30bc6c9d Mon Sep 17 00:00:00 2001 From: Zachary Karpinski Date: Wed, 20 Nov 2024 11:06:41 -0500 Subject: [PATCH] fix linting --- moto/ds/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/ds/models.py b/moto/ds/models.py index bab4168ed4c..b55e959323f 100644 --- a/moto/ds/models.py +++ b/moto/ds/models.py @@ -222,7 +222,7 @@ def enable_ldaps(self, enable: bool) -> None: """Enable/disable ldaps based on whether new_state is True or False. This method is only for MicrosoftAD. """ - if self.directory_type not in ("MicrosoftAD","ADConnector"): + if self.directory_type not in ("MicrosoftAD", "ADConnector"): raise UnsupportedOperationException( "LDAPS operations are not supported for this Directory Type." ) @@ -673,7 +673,7 @@ def describe_ldaps_settings( """Describe LDAPS settings for a Directory""" self._validate_directory_id(directory_id) directory = self.directories[directory_id] - if directory.directory_type not in ("MicrosoftAD","ADConnector"): + if directory.directory_type not in ("MicrosoftAD", "ADConnector"): raise UnsupportedOperationException( "LDAPS operations are not supported for this Directory Type." )