From 7404fd7aa12eb68b962011f93ffa04591dae4a9b Mon Sep 17 00:00:00 2001 From: Viren Nadkarni Date: Thu, 6 Jul 2023 09:06:10 +0530 Subject: [PATCH] Blacken --- moto/ssm/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/moto/ssm/models.py b/moto/ssm/models.py index 41b16c088fca..1ffc1a9d5f81 100644 --- a/moto/ssm/models.py +++ b/moto/ssm/models.py @@ -2062,7 +2062,11 @@ def put_parameter( "formed as a mix of letters, numbers and the following 3 symbols .-_" ) raise ValidationException(invalid_prefix_error) - if not parameter_type and not overwrite and not (name in self._parameters and self._parameters[name]): + if ( + not parameter_type + and not overwrite + and not (name in self._parameters and self._parameters[name]) + ): raise ValidationException( "A parameter type is required when you create a parameter." )