Skip to content

Commit ebe8ed6

Browse files
authored
Merge pull request #70 from UpCloudLtd/fix/server-storage-size
fix: omitempty on CreateServerStorageDevice
2 parents 9c4fec7 + 5cae9c2 commit ebe8ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upcloud/request/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type CreateServerStorageDevice struct {
5858
Storage string `json:"storage"`
5959
Title string `json:"title,omitempty"`
6060
// Storage size in gigabytes
61-
Size int `json:"size"`
61+
Size int `json:"size,omitempty"`
6262
Tier string `json:"tier,omitempty"`
6363
Type string `json:"type,omitempty"`
6464
}

0 commit comments

Comments
 (0)