Skip to content

Commit

Permalink
Fix to have the id list as None instead of an empty list if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
pritishpai committed Jan 29, 2025
1 parent 8035fce commit 6d51b75
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/databricks/labs/ucx/contexts/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,16 @@ def table_ownership_grant_loader(self) -> TableOwnershipGrantLoader:

@cached_property
def pipelines_migrator(self) -> PipelinesMigrator:
include_pipeline_ids = self.named_parameters.get('include_pipeline_ids', '').split(',') or None
exclude_pipeline_ids = self.named_parameters.get('exclude_pipeline_ids', '').split(',') or None
include_pipeline_ids = (
self.named_parameters.get('include_pipeline_ids', '').split(',')
if 'include_pipeline_ids' in self.named_parameters
else None
)
exclude_pipeline_ids = (
self.named_parameters.get('exclude_pipeline_ids', '').split(',')
if 'exclude_pipeline_ids' in self.named_parameters
else None
)
return PipelinesMigrator(
self.workspace_client,
self.pipelines_crawler,
Expand Down

0 comments on commit 6d51b75

Please sign in to comment.