Skip to content

Commit 5fa2079

Browse files
committed
go tool vet fixes
1 parent f1e03ea commit 5fa2079

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

api/api.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ type ScalewayImage struct {
184184
RootVolume ScalewayVolume `json:"root_volume,omitempty"`
185185

186186
// Public is true for public images and false for user images
187-
Public bool `json:"public",omitempty`
187+
Public bool `json:"public,omitempty"`
188188

189189
// Bootscript is the bootscript bound to the image
190190
DefaultBootscript *ScalewayBootscript `json:"default_bootscript,omitempty"`
@@ -298,13 +298,13 @@ type ScalewayBootscript struct {
298298
BootCmdArgs ScalewayBootCmdArgs `json:"bootcmdargs,omitempty"`
299299

300300
// Initrd is the initrd used by this bootscript
301-
Initrd ScalewayInitrd `json:initrd,omitempty`
301+
Initrd ScalewayInitrd `json:"initrd,omitempty"`
302302

303303
// Kernel is the kernel associated to this server
304304
Kernel ScalewayKernel `json:"kernel,omitempty"`
305305

306306
// Public is true for public bootscripts and false for user bootscripts
307-
Public bool `json:"public",omitempty`
307+
Public bool `json:"public,omitempty"`
308308
}
309309

310310
// ScalewayOneBootscript represents the response of a GET /bootscripts/UUID API call
@@ -397,7 +397,7 @@ type ScalewayServer struct {
397397
Hostname string `json:"hostname,omitempty"`
398398

399399
// Tags represents user-defined tags
400-
Tags []string `json:"tags",omitempty`
400+
Tags []string `json:"tags,omitempty"`
401401

402402
// Volumes are the attached volumes
403403
Volumes map[string]ScalewayVolume `json:"volumes,omitempty"`
@@ -425,7 +425,7 @@ type ScalewayServerPatchDefinition struct {
425425
Volumes *map[string]ScalewayVolume `json:"volumes,omitempty"`
426426
SecurityGroup *ScalewaySecurityGroup `json:"security_group,omitempty"`
427427
Organization *string `json:"organization,omitempty"`
428-
//Tags *[]string `json:"tags",omitempty`
428+
//Tags *[]string `json:"tags,omitempty"`
429429
}
430430

431431
// ScalewayServerDefinition represents a Scaleway C1 server with image definition
@@ -443,7 +443,7 @@ type ScalewayServerDefinition struct {
443443
Bootscript *string `json:"bootscript"`
444444

445445
// Tags are the metadata tags attached to the server
446-
Tags []string `json:"tags",omitempty`
446+
Tags []string `json:"tags,omitempty"`
447447

448448
// Organization is the owner of the server
449449
Organization string `json:"organization"`

0 commit comments

Comments
 (0)