Skip to content

Commit

Permalink
handle empty stack yaml file configuration (#791)
Browse files Browse the repository at this point in the history
* fix: handle empty stack YAML configuration and adjust file content retrieval

* fix: return existing content from GetFileContent instead of an empty string

* fix: remove unnecessary blank lines in ProcessYAMLConfigFile and GetFileContent functions
  • Loading branch information
haitham911 authored Nov 19, 2024
1 parent f909493 commit 1020645
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Empty file.
3 changes: 3 additions & 0 deletions internal/exec/stack_processor_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ func ProcessYAMLConfigFile(
return nil, nil, nil, err
}
}
if stackYamlConfig == "" {
return map[string]any{}, map[string]map[string]any{}, map[string]any{}, nil
}

stackManifestTemplatesProcessed := stackYamlConfig
stackManifestTemplatesErrorMessage := ""
Expand Down

0 comments on commit 1020645

Please sign in to comment.