Skip to content

Commit

Permalink
add support for yaml config
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Oct 10, 2024
1 parent 556279d commit 8860db2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions airbyte/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@

from __future__ import annotations

import json
from pathlib import Path
from typing import TYPE_CHECKING, Any

Expand Down Expand Up @@ -156,7 +155,7 @@ def _inject_secrets(config_dict: dict[str, Any]) -> None:
message="Config file not found.",
input_value=str(config_path),
)
config_dict = json.loads(config_path.read_text(encoding="utf-8"))
config_dict = yaml.safe_load(config_path.read_text(encoding="utf-8"))

_inject_secrets(config_dict)
return config_dict
Expand Down

0 comments on commit 8860db2

Please sign in to comment.