Skip to content

Commit

Permalink
Fix typo (#29)
Browse files Browse the repository at this point in the history
* Fix typo
  • Loading branch information
Dimedrolity authored May 11, 2023
1 parent 2315f99 commit b801a68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions moira_client/models/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ def _send_request(self, trigger_id=None):
api_response = TriggerManager(self._client).fetch_by_id(trigger_id)

if trigger_id and api_response:
res = self._client.put('trigger/{}?{}'.format(trigger_id, self.QUERY_PARAM_VALIDATE_FLAG, json=data))
res = self._client.put('trigger/{}?{}'.format(trigger_id, self.QUERY_PARAM_VALIDATE_FLAG), json=data)
else:
res = self._client.put('trigger?{}'.format(self.QUERY_PARAM_VALIDATE_FLAG, json=data))
res = self._client.put('trigger?{}'.format(self.QUERY_PARAM_VALIDATE_FLAG), json=data)

if 'id' not in res:
raise ResponseStructureError('id not in response', res)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='moira-python-client',
version='4.0.1',
version='4.0.2',
description='Client for Moira - Alerting system based on Graphite data',
keywords='moira monitoring client metrics alerting',
long_description="""
Expand Down

0 comments on commit b801a68

Please sign in to comment.