Skip to content

Commit

Permalink
CHANGELOG updated and fixed flag parsing (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raalsky authored May 25, 2022
1 parent cf3e579 commit c517fc5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 4 additions & 6 deletions kedro_neptune/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c517fc5

Please sign in to comment.