Skip to content

Commit

Permalink
Merge 07ac39c into dfc4a0c
Browse files Browse the repository at this point in the history
  • Loading branch information
YuvHayun committed Apr 2, 2024
2 parents dfc4a0c + 07ac39c commit d88a2e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .changelog/4203.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changes:
- description: Fixed an issue where validate spammed logs when running.
type: fix
pr_number: 4203
6 changes: 3 additions & 3 deletions demisto_sdk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,11 +839,11 @@ def validate(ctx, config, file_paths: str, **kwargs):
"config_path",
"category_to_run",
]:
if new_validate_flag in kwargs:
if new_validate_flag in kwargs and kwargs[new_validate_flag]:
logger.warning(
f"The following flag {new_validate_flag.replace('_', '-')} is related only to the new validate and is being called while not running the new validate flow, therefore the flag will be ignored."
)
if run_old_validate:
if not run_old_validate:
for old_validate_flag in [
"no_backward_comp",
"no_conf_json",
Expand All @@ -865,7 +865,7 @@ def validate(ctx, config, file_paths: str, **kwargs):
"run_specific_validations",
"no_multiprocessing",
]:
if old_validate_flag in kwargs:
if old_validate_flag in kwargs and kwargs[old_validate_flag]:
logger.warning(
f"The following flag {old_validate_flag.replace('_', '-')} is related only to the old validate and is being called while not running the old validate flow, therefore the flag will be ignored."
)
Expand Down

0 comments on commit d88a2e5

Please sign in to comment.