Skip to content

Commit

Permalink
refactor: updates "filter" variables to "workspace_filter" in entrypo…
Browse files Browse the repository at this point in the history
…ints

Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Oct 26, 2023
1 parent 15a2ce6 commit af28f88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions trestlebot/entrypoints/autosync.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def run(self, args: argparse.Namespace) -> None:
logger.error("Must set ssp_index_path when using SSP as oscal model.")
sys.exit(const.ERROR_EXIT_CODE)

filter: ModelFilter = ModelFilter(
workspace_filter: ModelFilter = ModelFilter(
skip_patterns=comma_sep_to_list(args.skip_items),
include_patterns=["."],
)
Expand All @@ -133,7 +133,7 @@ def run(self, args: argparse.Namespace) -> None:
authored_model=args.oscal_model,
markdown_dir=args.markdown_path,
ssp_index_path=args.ssp_index_path,
filter=filter,
filter=workspace_filter,
)
pre_tasks.append(assemble_task)
else:
Expand Down
4 changes: 2 additions & 2 deletions trestlebot/entrypoints/rule_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run(self, args: argparse.Namespace) -> None:
validation_handler: ValidationHandler = ValidationHandler(parameter_validation)
transformer: ToRulesYAMLTransformer = ToRulesYAMLTransformer(validation_handler)

filter: ModelFilter = ModelFilter(
workspace_filter: ModelFilter = ModelFilter(
skip_patterns=comma_sep_to_list(args.skip_items),
include_patterns=["."],
)
Expand All @@ -72,7 +72,7 @@ def run(self, args: argparse.Namespace) -> None:
working_dir=args.working_dir,
rules_view_dir=args.rules_view_path,
rule_transformer=transformer,
filter=filter,
filter=workspace_filter,
)
pre_tasks: List[TaskBase] = [rule_transform_task]

Expand Down

0 comments on commit af28f88

Please sign in to comment.