Skip to content

Commit

Permalink
Update module.go (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos77 authored Nov 14, 2024
1 parent 9b3016e commit f9f340b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ func addKymaModuleInSpec(moduleName string, obj map[string]interface{}) error {

func getKymaModuleStateInStatus(moduleName string, obj map[string]interface{}) (string, error) {
modules, exists, err := unstructured.NestedSlice(obj, "status", "modules")
if !exists || err != nil {
if !exists {
return "", nil
}
if err != nil {
return "", fmt.Errorf("error reading kyma status modules: %w", err)
}

Expand Down

0 comments on commit f9f340b

Please sign in to comment.