Skip to content

Commit

Permalink
🐛 Fix inverse check in output check
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
  • Loading branch information
mhkarimi1383 committed Nov 4, 2024
1 parent eaef21b commit d90f263
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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.9
appVersion: "0.0.6"
version: 0.0.10
appVersion: "0.0.7"

6 changes: 3 additions & 3 deletions haproxy_redis_sentinel/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ def run(
f"set server {
haproxy_backend}/{haproxy_server_name} state maint",
f"del server {haproxy_backend}/{haproxy_server_name}"])
if any(item in out for item in {HAProxyOutput.SERVER_DELETED,
HAProxyOutput.SERVER_NOT_FOUND,
HAProxyOutput.BACKEND_NOT_FOUND}):
if not any(item in out for item in {HAProxyOutput.SERVER_DELETED,
HAProxyOutput.SERVER_NOT_FOUND,
HAProxyOutput.BACKEND_NOT_FOUND}):
raise Exception(f"Error while removing old server: {out}")
out = send_command(haproxy_socket,
f"add server {haproxy_backend}/{haproxy_server_name} {address}") # noqa: E501
Expand Down

0 comments on commit d90f263

Please sign in to comment.