Skip to content

Commit

Permalink
call get_transient_settings with settings value as a list, not string…
Browse files Browse the repository at this point in the history
… - bugfix
  • Loading branch information
ryan109 committed Jul 18, 2023
1 parent 277d943 commit a65a4d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.6.1
+ Fix bug in get transient settings for cluster

# 0.6

+ Add CLI option to temporarily override disk watermarks
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch_rebalancer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def print_execute_reroutes(es_host, commands):
raise BalanceException('User exited serial rerouting!')

cluster_update_interval = get_transient_cluster_settings(
es_host, 'cluster.info.update.interval',
es_host, ['cluster.info.update.interval'],
)['cluster.info.update.interval'] or '30s'

cluster_update_interval = int(cluster_update_interval[:-1])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
setup(
name='elasticsearch-rebalancer',
description='Pokes Elasticsearch to balance itself sensibly.',
version='0.6',
version='0.6.1',
author='EDITED devs',
author_email='[email protected]',
packages=[
Expand Down

0 comments on commit a65a4d9

Please sign in to comment.