Skip to content

Commit

Permalink
Adding default value to the parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
siklosid committed Jul 4, 2024
1 parent cd12dda commit 0e6a6a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dagger/utilities/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


class Module:
def __init__(self, path_to_config, target_dir, jinja_parameters):
def __init__(self, path_to_config, target_dir, jinja_parameters=None):
self._directory = path.dirname(path_to_config)
self._target_dir = target_dir or "./"
self._path_to_config = path_to_config
Expand All @@ -29,7 +29,7 @@ def __init__(self, path_to_config, target_dir, jinja_parameters):
self._branches_to_generate = config["branches_to_generate"]
self._override_parameters = config.get("override_parameters", {})
self._default_parameters = config.get("default_parameters", {})
self._jinja_parameters = jinja_parameters
self._jinja_parameters = jinja_parameters or {}

@staticmethod
def read_yaml(yaml_str):
Expand Down

0 comments on commit 0e6a6a6

Please sign in to comment.