Skip to content

Commit

Permalink
Fix #4 - apiKey problem in deprecated OpsGenie client configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
alpgurtan committed Jun 24, 2017
1 parent fa743f6 commit 38826ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ our old OpsGenie client for creating alerts to new REST API:
from opsgenie.config import Configuration
from opsgenie.swagger_client.rest import ApiException

config = Configuration("YOUR_API_KEY")
config = Configuration(apikey="YOUR_API_KEY")

client = OpsGenie(config)

Expand Down
2 changes: 1 addition & 1 deletion opsgenie/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def request_call(self, request):
request.validate()

url = self.configuration.endpoint + url_suffix
params = generate_params(self.configuration.apikey, request)
params = generate_params(self.configuration.api_key, request)
proxy = generate_proxy(self.configuration.proxy_config)
timeout, retry = generate_timeout_and_retry(self.configuration.http_config)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run_tests(self):

setup(
name='opsgenie-sdk',
version='0.3.0',
version='0.3.1',
description='Python SDK for OpsGenie Web/REST API',
long_description=(open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()),
url='https://github.com/opsgenie/opsgenie-python-sdk',
Expand Down

0 comments on commit 38826ef

Please sign in to comment.