Skip to content

Commit 6ad4fd6

Browse files
committed
fix(instance): fix index out of range panic in warningServerTypeDeprecated
1 parent c5552f9 commit 6ad4fd6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/namespaces/instance/v1/helpers_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ func warningServerTypeDeprecated(
6767
server *instance.Server,
6868
) []string {
6969
warning := make([]string, 0, 2)
70-
warning[0] = terminal.Style(
70+
warning = append(warning, terminal.Style(
7171
fmt.Sprintf(
7272
"Warning: server type %q will soon reach EndOfService",
7373
server.CommercialType,
7474
),
7575
color.Bold,
7676
color.FgYellow,
77-
)
77+
))
7878

7979
eosDate, err := getEndOfServiceDate(ctx, client, server.Zone, server.CommercialType)
8080
if err != nil {

0 commit comments

Comments
 (0)