Skip to content

Commit

Permalink
Blacken
Browse files Browse the repository at this point in the history
  • Loading branch information
viren-nadkarni committed Jul 6, 2023
1 parent d0a4a10 commit 7404fd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion moto/ssm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down

0 comments on commit 7404fd7

Please sign in to comment.