Skip to content

Commit

Permalink
[client] Take into account default / is_number
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Apr 29, 2024
1 parent e5ad793 commit abfc374
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyobas/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def get_config_variable(
default=None,
required=False,
) -> Union[bool, int, None, str]:
print(default)
"""[summary]
:param env_var: environment variable name
Expand Down Expand Up @@ -296,8 +297,8 @@ def get_conf(self, variable, is_number=None, default=None, required=None):
env_var=var["env"],
yaml_path=var["file_path"],
config=self.file_config,
isNumber=is_number,
default=default,
isNumber=var["is_number"] if "is_number" in var else is_number,
default=var["default"] if "default" in var else default,
required=required,
)

Expand Down

0 comments on commit abfc374

Please sign in to comment.