Skip to content

Commit

Permalink
Update on credentials.md
Browse files Browse the repository at this point in the history
Updating example code in credentials.md to make it usable when copy/pasting. Since as of now it will generate a TypeError
  • Loading branch information
jmnunezd authored Jul 11, 2023
1 parent b1e3293 commit 264faa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/configuration/credentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The following examples all use the default `ConfigLoader` class.
from kedro.config import ConfigLoader
from kedro.framework.project import settings

conf_path = str(project_path / settings.CONF_SOURCE)
conf_path = f"{project_path}/{settings.CONF_SOURCE}"
conf_loader = ConfigLoader(conf_source=conf_path)
credentials = conf_loader["credentials"]
```
Expand All @@ -28,7 +28,7 @@ Calling `conf_loader[key]` in the example above throws a `MissingConfigException
from kedro.config import ConfigLoader, MissingConfigException
from kedro.framework.project import settings

conf_path = str(project_path / settings.CONF_SOURCE)
conf_path = f"{project_path}/{settings.CONF_SOURCE}"
conf_loader = ConfigLoader(conf_source=conf_path)

try:
Expand Down

0 comments on commit 264faa8

Please sign in to comment.