Skip to content

Commit

Permalink
Fix bug where mapper list command print line in wrong order when inte…
Browse files Browse the repository at this point in the history
…nts have HTTP resources (#148)
  • Loading branch information
NetanelBollag authored Feb 18, 2024
1 parent f096a8e commit 16eb981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkg/intentsoutput/intentslister/lister.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ func ListFormattedIntents(intents []v1alpha3.ClientIntents) {
for _, call := range intent.GetCallsList() {
output.PrintStdout(" - %s in namespace %s", call.GetTargetServerName(), call.GetTargetServerNamespace(intent.GetNamespace()))
for _, topic := range call.Topics {
output.PrintStderr(" - Kafka topic: %s, operations: %s", topic.Name, topic.Operations)
output.PrintStdout(" - Kafka topic: %s, operations: %s", topic.Name, topic.Operations)
}
for _, resource := range call.HTTPResources {
output.PrintStderr(" - path %s, methods: %s", resource.Path, strings.ReplaceAll(fmt.Sprintf("%s", resource.Methods), " ", ","))
output.PrintStdout(" - path %s, methods: %s", resource.Path, strings.ReplaceAll(fmt.Sprintf("%s", resource.Methods), " ", ","))
}
}
}
Expand Down

0 comments on commit 16eb981

Please sign in to comment.