diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a3d2c5..ff4fe35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## kedro-neptune 0.1.1 + +### Features +- Support environment variables for enabled ([#35](https://github.com/neptune-ai/kedro-neptune/pull/35)) + ## kedro-neptune 0.1.0 ### Changes diff --git a/kedro_neptune/config.py b/kedro_neptune/config.py index 8302d7c..c10fc87 100644 --- a/kedro_neptune/config.py +++ b/kedro_neptune/config.py @@ -18,12 +18,10 @@ from dataclasses import dataclass -def _parse_config_input(config_input): - if config_input.startswith('$'): - parsed_input = os.environ.get(config_input[1:]) - else: - parsed_input = config_input - return parsed_input +def _parse_config_input(config_input: str): + if isinstance(config_input, str) and config_input.startswith('$'): + return os.environ.get(config_input[1:]) + return config_input @dataclass()