|
8 | 8 | "github.com/goccy/go-yaml" |
9 | 9 | "github.com/stackitcloud/stackit-cli/internal/cmd/params" |
10 | 10 | "github.com/stackitcloud/stackit-cli/internal/pkg/args" |
11 | | - "github.com/stackitcloud/stackit-cli/internal/pkg/errors" |
| 11 | + cliErr "github.com/stackitcloud/stackit-cli/internal/pkg/errors" |
12 | 12 | "github.com/stackitcloud/stackit-cli/internal/pkg/examples" |
13 | 13 | "github.com/stackitcloud/stackit-cli/internal/pkg/flags" |
14 | 14 | "github.com/stackitcloud/stackit-cli/internal/pkg/globalflags" |
@@ -81,8 +81,6 @@ func NewCmd(params *params.CmdParams) *cobra.Command { |
81 | 81 | if err != nil { |
82 | 82 | params.Printer.Debug(print.ErrorLevel, "get organization name: %v", err) |
83 | 83 | networkAreaLabel = *model.NetworkAreaId |
84 | | - } else if networkAreaLabel == "" { |
85 | | - networkAreaLabel = *model.NetworkAreaId |
86 | 84 | } |
87 | 85 | params.Printer.Info("No network ranges found for SNA %q\n", networkAreaLabel) |
88 | 86 | return nil |
@@ -114,7 +112,7 @@ func parseInput(p *print.Printer, cmd *cobra.Command) (*inputModel, error) { |
114 | 112 | globalFlags := globalflags.Parse(p, cmd) |
115 | 113 | limit := flags.FlagToInt64Pointer(p, cmd, limitFlag) |
116 | 114 | if limit != nil && *limit < 1 { |
117 | | - return nil, &errors.FlagValidationError{ |
| 115 | + return nil, &cliErr.FlagValidationError{ |
118 | 116 | Flag: limitFlag, |
119 | 117 | Details: "must be greater than 0", |
120 | 118 | } |
|
0 commit comments