Skip to content

Commit d5c41b8

Browse files
committed
fix from review
1 parent 65323d1 commit d5c41b8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
cdk_app = cdk.App()
12-
env_name = cdk_app.node.try_get_context("env")
12+
env_name = cdk_app.node.try_get_context("env") or "dev"
1313
config = load_context_config(env_name=env_name)
1414
stack_name_prefix = f"app-{env_name}"
1515
fully_qualified_domain_name = config["FQDN"]

src/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ def read_file(path: Path) -> Dict[str, Any]:
4545
# Load base config (optional)
4646
base_config = {}
4747
if base_path.exists():
48-
with open(base_path, "r") as f:
49-
base_config = yaml.safe_load(f) or {}
48+
base_config = read_file(base_path)
5049

5150
# Detect existing env-specific file(s)
5251
env_files = [p for p in [env_yaml, env_yml, env_json] if p.exists()]

0 commit comments

Comments
 (0)