Skip to content

Commit 28af2f1

Browse files
author
Quentin Brosse
authored
doc(instance): remove outdated TODOs in create_server (#1466)
1 parent 5502c76 commit 28af2f1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/namespaces/instance/v1/custom_server_create.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"github.com/scaleway/scaleway-sdk-go/validation"
1919
)
2020

21-
// TODO: Add cloud-init
2221
type instanceCreateServerRequest struct {
2322
Zone scw.Zone
2423
ProjectID *string
@@ -41,7 +40,6 @@ type instanceCreateServerRequest struct {
4140
OrganizationID *string
4241
}
4342

44-
// TODO: Remove all error uppercase and punctuations when [APIGW-1367] will be done
4543
func serverCreateCommand() *core.Command {
4644
return &core.Command{
4745
Short: `Create server`,
@@ -473,7 +471,7 @@ func buildVolumeTemplate(api *instance.API, zone scw.Zone, flagV string) (*insta
473471

474472
size, err := humanize.ParseBytes(parts[1])
475473
if err != nil {
476-
return nil, fmt.Errorf("invalid size format %s in %s volume", parts[1], flagV) // TODO: improve msg [APIGW-1371]
474+
return nil, fmt.Errorf("invalid size format %s in %s volume", parts[1], flagV)
477475
}
478476
vt.Size = scw.Size(size)
479477

0 commit comments

Comments
 (0)