Skip to content

Commit

Permalink
Merge pull request #3 from bigbank-as/develop
Browse files Browse the repository at this point in the history
TypeError: activate_watch() got an unexpected keyword argument 'id'
  • Loading branch information
viljarb authored Sep 19, 2018
2 parents 5b21b7f + e62c96a commit eea58dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified lib/__pycache__/watcherimporter.cpython-36.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/watcherimporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def update_elastic(self, watcher_id, watcher_definition):
self.logger.info('Updated watcher %s, it is now version #%d', watcher_id, result.get('_version', 1))

try:
result = self.elastic.xpack.watcher.activate_watch(id=watcher_id)
result = self.elastic.xpack.watcher.activate_watch(watcher_id)
except RequestError as e:
self.logger.exception('Unable to activate Elasticsearch watcher %s: %s', watcher_id, str(e))
return
Expand Down

0 comments on commit eea58dd

Please sign in to comment.