Skip to content

Commit

Permalink
fix: describe output
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-saxena-d11 committed Oct 23, 2024
1 parent e7dbd64 commit 765d7f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/describe/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func writeAsTextEnvResponse(response *environment.DescribeEnvironmentResponse) {
serviceMap := map[string]interface{}{
"name": svc.Name,
"version": svc.Version,
"status": svc.Status,
}
if len(svc.Components) > 0 {
serviceMap["components"] = svc.Components
Expand Down Expand Up @@ -138,6 +139,7 @@ func writeAsJSONEnvResponse(response *environment.DescribeEnvironmentResponse) {
serviceMap := map[string]interface{}{
"name": svc.Name,
"version": svc.Version,
"status": svc.Status,
}
if len(svc.Components) > 0 {
serviceMap["components"] = svc.Components
Expand Down

0 comments on commit 765d7f4

Please sign in to comment.