Skip to content

Commit

Permalink
🐛 Fix index error
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammed Hussein Karimi <[email protected]>
  • Loading branch information
mhkarimi1383 committed Oct 30, 2024
1 parent 9484c82 commit 31265b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/haproxy-redis-sentinel/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: haproxy-redis-sentinel
description: A Helm chart for HAProxy with Redis Sentinel
version: 0.0.3
appVersion: "0.0.1"
version: 0.0.4
appVersion: "0.0.2"

2 changes: 1 addition & 1 deletion haproxy_redis_sentinel/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def run(
try:
master_id = [k for k in sentinel_info.keys()
if k.startswith("master") and
sentinel_info[k]["name"] == master_name][1]
sentinel_info[k]["name"] == master_name][0]
except IndexError:
raise Exception("Unable to find given master by name")
address = sentinel_info[master_id]["address"]
Expand Down

0 comments on commit 31265b7

Please sign in to comment.