From 0683119c0bdd18213277c36c8e6908cef7200cfc Mon Sep 17 00:00:00 2001 From: Chris Baker <67271994+chris-p-baker@users.noreply.github.com> Date: Thu, 22 Aug 2024 09:52:28 +0100 Subject: [PATCH] Resolved issue with Configuration being a required parameter for Athena Workgroups. Bug introduced by pull request https://github.com/getmoto/moto/pull/7946 which force Configuration to become a required parameter for Athena Workgroups when it is not. This change allow for the work in the pull request mentioned to function without making Configuration required. --- moto/athena/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moto/athena/models.py b/moto/athena/models.py index 988cd387aff..ce5912dda99 100644 --- a/moto/athena/models.py +++ b/moto/athena/models.py @@ -62,6 +62,9 @@ def __init__( self.description = description self.configuration = configuration + if not configuration: + self.configuration = {} + if "EnableMinimumEncryptionConfiguration" not in self.configuration: self.configuration["EnableMinimumEncryptionConfiguration"] = False if "EnforceWorkGroupConfiguration" not in self.configuration: