File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 99
1010
1111cdk_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"
1313config = load_context_config (env_name = env_name )
1414stack_name_prefix = f"app-{ env_name } "
1515fully_qualified_domain_name = config ["FQDN" ]
Original file line number Diff line number Diff 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 ()]
You can’t perform that action at this time.
0 commit comments