Skip to content

Commit 7173e80

Browse files
author
Quentin Perez
committed
api: switch to VC1S
1 parent 4740b7b commit 7173e80

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

pkg/api/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ type ScalewayServer struct {
511511
// Organization is the owner of the server
512512
Organization string `json:"organization,omitempty"`
513513

514-
// CommercialType is the commercial type of the server (i.e: C1, C2[SML], VC1)
514+
// CommercialType is the commercial type of the server (i.e: C1, C2[SML], VC1S)
515515
CommercialType string `json:"commercial_type,omitempty"`
516516

517517
// Location of the server
@@ -568,7 +568,7 @@ type ScalewayServerDefinition struct {
568568
// Organization is the owner of the server
569569
Organization string `json:"organization"`
570570

571-
// CommercialType is the commercial type of the server (i.e: C1, C2[SML], VC1)
571+
// CommercialType is the commercial type of the server (i.e: C1, C2[SML], VC1S)
572572
CommercialType string `json:"commercial_type"`
573573

574574
PublicIP string `json:"public_ip,omitempty"`

pkg/cli/cmd_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func init() {
3131
cmdCreate.Flag.StringVar(&createEnv, []string{"e", "-env"}, "", "Provide metadata tags passed to initrd (i.e., boot=resue INITRD_DEBUG=1)")
3232
cmdCreate.Flag.StringVar(&createVolume, []string{"v", "-volume"}, "", "Attach additional volume (i.e., 50G)")
3333
cmdCreate.Flag.StringVar(&createIPAddress, []string{"-ip-address"}, "dynamic", "Assign a reserved public IP, a 'dynamic' one or 'none'")
34-
cmdCreate.Flag.StringVar(&createCommercialType, []string{"-commercial-type"}, "VC1", "Create a server with specific commercial-type C1, VC1, C2[S|M|L]")
34+
cmdCreate.Flag.StringVar(&createCommercialType, []string{"-commercial-type"}, "VC1S", "Create a server with specific commercial-type C1, VC1S, C2[S|M|L]")
3535
cmdCreate.Flag.BoolVar(&createHelp, []string{"h", "-help"}, false, "Print usage")
3636
cmdCreate.Flag.BoolVar(&createTmpSSHKey, []string{"-tmp-ssh-key"}, false, "Access your server without uploading your SSH key to your account")
3737
}

pkg/cli/cmd_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func init() {
4545
cmdRun.Flag.BoolVar(&runDetachFlag, []string{"d", "-detach"}, false, "Run server in background and print server ID")
4646
cmdRun.Flag.StringVar(&runGateway, []string{"g", "-gateway"}, "", "Use a SSH gateway")
4747
cmdRun.Flag.StringVar(&runUserdatas, []string{"u", "-userdata"}, "", "Start a server with userdata predefined")
48-
cmdRun.Flag.StringVar(&runCommercialType, []string{"-commercial-type"}, "VC1", "Start a server with specific commercial-type C1, VC1, C2[SML]")
48+
cmdRun.Flag.StringVar(&runCommercialType, []string{"-commercial-type"}, "VC1S", "Start a server with specific commercial-type C1, VC1S, C2[SML]")
4949
cmdRun.Flag.BoolVar(&runAutoRemove, []string{"-rm"}, false, "Automatically remove the server when it exits")
5050
cmdRun.Flag.BoolVar(&runTmpSSHKey, []string{"-tmp-ssh-key"}, false, "Access your server without uploading your SSH key to your account")
5151
cmdRun.Flag.BoolVar(&runShowBoot, []string{"-show-boot"}, false, "Allows to show the boot")

pkg/commands/create_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestRunCreate_realAPI(t *testing.T) {
6363
args := CreateArgs{
6464
Name: "unittest-create-standard",
6565
Image: "ubuntu-wily",
66-
CommercialType: "VC1",
66+
CommercialType: "VC1S",
6767
}
6868

6969
scopedCtx, scopedStdout, scopedStderr := getScopedCtx(ctx)

pkg/commands/run_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ func ExampleRun() {
88
ctx := testCommandContext()
99
args := RunArgs{
1010
Image: "ubuntu-trusty",
11-
CommercialType: "VC1",
11+
CommercialType: "VC1S",
1212
}
1313
Run(ctx, args)
1414
}
@@ -23,7 +23,7 @@ func ExampleRun_complex() {
2323
Gateway: "my-gateway",
2424
Image: "ubuntu-trusty",
2525
Name: "my-test-server",
26-
CommercialType: "VC1",
26+
CommercialType: "VC1S",
2727
Tags: []string{"testing", "fake"},
2828
Volumes: []string{"50G", "1G"},
2929
}

0 commit comments

Comments
 (0)