Skip to content

Commit

Permalink
webhook: Fix failure in sending webhook POST requests (PROJQUAY-7468)
Browse files Browse the repository at this point in the history
`urllib` requires that certs be parsed as tuple, not as a list. This small fix addresses that issue.
  • Loading branch information
ibazulic committed Jul 11, 2024
1 parent 02c7211 commit 1446aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifications/notificationmethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class NotificationMethodPerformException(JobException):

def _ssl_cert():
if app.config["PREFERRED_URL_SCHEME"] == "https":
cert_files = [OVERRIDE_CONFIG_DIRECTORY + f for f in SSL_FILENAMES]
cert_files = tuple([OVERRIDE_CONFIG_DIRECTORY + f for f in SSL_FILENAMES])
cert_exists = all([os.path.isfile(f) for f in cert_files])
return cert_files if cert_exists else None

Expand Down

0 comments on commit 1446aeb

Please sign in to comment.