From e15206101a49a13769685dcb96404d9e9adc82ee Mon Sep 17 00:00:00 2001 From: vakarisz Date: Wed, 22 Jun 2022 14:42:19 +0300 Subject: [PATCH] Agent: Fix a bug in should_propagate --- monkey/infection_monkey/utils/propagation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/utils/propagation.py b/monkey/infection_monkey/utils/propagation.py index 568def5d5..ed9567c26 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 + return config["config"]["depth"] > depth