Skip to content

Commit 19c4708

Browse files
committed
adding possibility for a controlled failure rate. e.g adding rate .5 will add failure approx 50% of the time - FIX
1 parent 84ddf38 commit 19c4708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/chaos_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_config(config_key):
2929
value = json.loads(param.value)
3030
if not value["isEnabled"]:
3131
return 0
32-
return value[config_key], value.get('rate', 0)
32+
return value[config_key], value.get('rate', 1)
3333
except InvalidParameterError as e:
3434
# key does not exist in SSM
3535
raise InvalidParameterError("{} does not exist in SSM".format(e))

0 commit comments

Comments
 (0)