Skip to content

Commit

Permalink
no-diff-output-001 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
aguzmans authored Feb 21, 2024
1 parent 4d4b791 commit cfc73b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/diffs-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ func FormatDiffHumanReadable(differences []DAO.DiffWithName) string {
formattedDiff.WriteString("\n")
}
} else {
fmt.Println("No differences found.")
if diff.Namespace != "" {
fmt.Printf("No differences found; Object Name %s, Kubernetes resource definition type %s, Namespace %s\n", diff.Name, diff.PropertyName, diff.Namespace)
} else {
fmt.Printf("No differences found; Object Name %s, Kubernetes resource definition type %s\n", diff.Name, diff.PropertyName)
}
}
}
return formattedDiff.String()
Expand Down

0 comments on commit cfc73b0

Please sign in to comment.