Handle optional config-file
This commit is contained in:
parent
cd8a6ce1f3
commit
afa6e64ad3
@ -301,6 +301,7 @@ def init_operation(deploy_command_context, stack, deployer_type, config,
|
||||
new_config = config_variables
|
||||
merged_config = {**new_config, **orig_config}
|
||||
spec_file_content.update({"config": merged_config})
|
||||
if config_file:
|
||||
config_file_path = Path(config_file)
|
||||
if not config_file_path.exists():
|
||||
error_exit(f"config file: {config_file} does not exist")
|
||||
|
Loading…
Reference in New Issue
Block a user