Skip to content

Commit 3f9359b

Browse files
committed
allow empty route action blocks
Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
1 parent 483d805 commit 3f9359b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
when no data was found for the SLO
1111
* Bump dependencies
1212

13+
# Fixed
14+
15+
* Allow for empty route action block in load balancer actions
16+
1317
## [0.32.1][] - 2024-05-31
1418

1519
[0.32.1]: https://github.com/chaostoolkit-incubator/chaostoolkit-google-cloud-platform/compare/0.32.0...0.32.1

chaosgcp/lb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def get_route_action(
7979
)
8080
raise ActivityFailed("failed to match the appropriate path matcher")
8181

82-
if not route_action:
82+
if route_action is None:
8383
logger.debug(
8484
f"Failed to find path '{target_path}' in path matcher '{target_name}'"
8585
)

0 commit comments

Comments
 (0)