Skip to content

Commit 5bf48d0

Browse files
committed
changed to outputf
1 parent f4cc9c2 commit 5bf48d0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

internal/cmd/organization/describe/describe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func buildRequest(ctx context.Context, model *inputModel, apiClient *resourceman
8989
func outputResult(p *print.Printer, outputFormat string, organization *resourcemanager.OrganizationResponse) error {
9090
return p.OutputResult(outputFormat, organization, func() error {
9191
if organization == nil {
92-
p.Error("show organization: empty response")
92+
p.Outputln("show organization: empty response")
9393
return nil
9494
}
9595

internal/cmd/organization/list/list.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package list
22

33
import (
44
"context"
5-
"fmt"
65

76
"github.com/stackitcloud/stackit-cli/internal/pkg/auth"
87
"github.com/stackitcloud/stackit-cli/internal/pkg/config"
@@ -70,11 +69,11 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
7069
req := buildRequest(ctx, model, apiClient)
7170
resp, err := req.Execute()
7271
if err != nil {
73-
return fmt.Errorf("list organizations: %w", err)
72+
return err
7473
}
7574

7675
if resp == nil {
77-
params.Printer.Info("list organizations: empty response")
76+
params.Printer.Outputln("list organizations: empty response")
7877
return nil
7978
}
8079

0 commit comments

Comments
 (0)