Skip to content

Commit 4662291

Browse files
committed
Ensure ca_file is closed
Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
1 parent effaa59 commit 4662291

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/charms/mysql/v0/s3_helpers.py

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def upload_content_to_s3(content: str, content_path: str, s3_parameters: Dict) -
8585
exc_info=e,
8686
)
8787
return False
88+
finally:
89+
ca_file.close()
8890

8991
return True
9092

0 commit comments

Comments
 (0)