Skip to content

Commit

Permalink
Set ssl verify for Bugzilla & Gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Sep 7, 2023
1 parent bdec378 commit 35fedd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bugme.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ def do_bugzilla(url: str, bugs: list, creds):
"""
if len(bugs) == 0:
return
sslverify = os.environ.get("REQUESTS_CA_BUNDLE", True)
try:
mybugz = Bugzilla(url, force_rest=True, **creds)
mybugz = Bugzilla(url, force_rest=True, sslverify=sslverify, **creds)
for bug in mybugz.getbugs(bugs):
print(f"bsc#{bug.id}\t{bug.status}\t\t{dateit(bug.last_change_time)}\t{bug.summary}")
mybugz.disconnect()
Expand Down

0 comments on commit 35fedd5

Please sign in to comment.