From 8d2078048cdfb381ed5c22dc56dd40003c19bdc2 Mon Sep 17 00:00:00 2001 From: vakarisz Date: Wed, 22 Jun 2022 17:39:25 +0300 Subject: [PATCH] Agent: Change the positive_int definition to contain 0 --- monkey/common/utils/argparse_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/common/utils/argparse_types.py b/monkey/common/utils/argparse_types.py index a920ef1b4..fd6f94c33 100644 --- a/monkey/common/utils/argparse_types.py +++ b/monkey/common/utils/argparse_types.py @@ -3,7 +3,7 @@ import argparse def positive_int(_input: str): int_value = int(_input) - if int_value <= 0: + if int_value < 0: raise argparse.ArgumentTypeError(f"{_input} is not a positive integer") return int_value