Skip to content

Commit 0c82d98

Browse files
ErezLevipErez Levi
andauthored
fix: opsgenie wrong header on multiple providers (#5272)
Co-authored-by: Erez Levi <[email protected]>
1 parent 65aff09 commit 0c82d98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

keep/providers/opsgenie_provider/opsgenie_provider.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def __init__(
7979
self.configuration = opsgenie_sdk.Configuration()
8080
self.configuration.retry_http_response = ["429", "500", "502-599", "404"]
8181
self.configuration.short_polling_max_retries = 3
82+
# IMPORTANT: Create a new dict to avoid sharing with other instances
83+
self.configuration.api_key = {}
8284
self.configuration.api_key["Authorization"] = self.authentication_config.api_key
8385

8486
def validate_scopes(self):

0 commit comments

Comments
 (0)