Skip to content

Commit

Permalink
Merge if global config exist
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Jan 3, 2025
1 parent 4b171ac commit 38cb926
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dagfactory/dagfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def _merge_default_args(self):
global_default_args = self._global_default_args()
default_config: Dict[str, Any] = self.get_default_config()

if global_default_args is None:
return default_config

merged_config = global_default_args.copy()
merged_config.update(default_config)

Expand Down

0 comments on commit 38cb926

Please sign in to comment.