diff --git a/monkey/infection_monkey/utils/propagation.py b/monkey/infection_monkey/utils/propagation.py index ed9567c26..004bafdd2 100644 --- a/monkey/infection_monkey/utils/propagation.py +++ b/monkey/infection_monkey/utils/propagation.py @@ -1,2 +1,2 @@ -def should_propagate(config: dict, depth: int) -> bool: - return config["config"]["depth"] > depth +def should_propagate(config: dict, current_depth: int) -> bool: + return config["config"]["depth"] > current_depth