Skip to content

Commit

Permalink
Merge pull request #307 from gianlucam76/diff
Browse files Browse the repository at this point in the history
Add Cluster info when displaying diff
  • Loading branch information
gianlucam76 authored Dec 1, 2024
2 parents f45a474 + 6b0bad8 commit a0d9a78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/commands/show/dryrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ func displayDryRunForCluster(clusterReport *configv1alpha1.ClusterReport, profil
if rawDiff {
if rawDiff && report.Message != "" && report.Action == string(configv1alpha1.UpdateResourceAction) {
//nolint: forbidigo // print diff
fmt.Println(report.Message)
fmt.Printf("Cluster: %s/%s\n%s\n", clusterReport.Spec.ClusterNamespace, clusterReport.Spec.ClusterName,
report.Message)
}
}
}
Expand All @@ -179,7 +180,8 @@ func displayDryRunForCluster(clusterReport *configv1alpha1.ClusterReport, profil
if rawDiff {
if rawDiff && report.Message != "" && report.Action == string(configv1alpha1.UpdateResourceAction) {
//nolint: forbidigo // print diff
fmt.Println(report.Message)
fmt.Printf("Cluster: %s/%s\n%s\n", clusterReport.Spec.ClusterNamespace, clusterReport.Spec.ClusterName,
report.Message)
}
}
}
Expand Down

0 comments on commit a0d9a78

Please sign in to comment.