Skip to content

Commit 9a73735

Browse files
committed
Update die_on_failures behavior
Added support for dry_run to be issued in params, with default value of False Added support for dry_run from params to change die_on_failures
1 parent 0943e38 commit 9a73735

File tree

1 file changed

+2
-1
lines changed
  • _delphi_utils_python/delphi_utils/validator

1 file changed

+2
-1
lines changed

_delphi_utils_python/delphi_utils/validator/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ def run_module():
1717
args = parser.parse_args()
1818
params = read_params()
1919
validator = Validator(params)
20+
dry_run_param = params["validation"]["common"].get("dry_run", False)
2021
validator.validate().print_and_exit(
2122
get_structured_logger(__name__,
2223
params["common"].get("log_filename", None)),
23-
not args.dry_run)
24+
not (args.dry_run or dry_run_param))
2425

2526

2627
def validator_from_params(params):

0 commit comments

Comments
 (0)