Skip to content

Commit 535b8dc

Browse files
committed
Only create ResultConfiguration if needed
1 parent 4b79b76 commit 535b8dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awswrangler/athena/_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def _start_query_execution(
9898

9999
# encryption
100100
if wg_config.enforced is True:
101-
if "ResultConfiguration" not in args:
102-
args["ResultConfiguration"] = {}
103101
if wg_config.encryption is not None:
102+
if "ResultConfiguration" not in args:
103+
args["ResultConfiguration"] = {}
104104
args["ResultConfiguration"]["EncryptionConfiguration"] = {"EncryptionOption": wg_config.encryption}
105105
if wg_config.kms_key is not None:
106106
args["ResultConfiguration"]["EncryptionConfiguration"]["KmsKey"] = wg_config.kms_key

0 commit comments

Comments
 (0)