Skip to content

Commit 5cae9c2

Browse files
author
Touko Hallasmaa
committed
fix: omitempty on CreateServerStorageDevice
size is optional (defaulting to the size of the original) when cloning a storage
1 parent 9c4fec7 commit 5cae9c2

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)