Skip to content

Commit

Permalink
omitempty needed
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai committed Apr 18, 2023
1 parent 91968e6 commit 048bc8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions images.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type ImageCreateOptions struct {
DiskID int `json:"disk_id"`
Label string `json:"label"`
Description string `json:"description,omitempty"`
CloudInit bool `json:"cloud_init"`
CloudInit bool `json:"cloud_init,omitempty"`
}

// ImageUpdateOptions fields are those accepted by UpdateImage
Expand All @@ -63,7 +63,7 @@ type ImageCreateUploadOptions struct {
Region string `json:"region"`
Label string `json:"label"`
Description string `json:"description,omitempty"`
CloudInit bool `json:"cloud_init"`
CloudInit bool `json:"cloud_init,omitempty"`
}

// ImageUploadOptions fields are those accepted by UploadImage
Expand Down
2 changes: 1 addition & 1 deletion instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ type InstanceTransfer struct {
// that relate to the Linode Metadata service.
type InstanceMetadataOptions struct {
// UserData expects a Base64-encoded string
UserData string `json:"user_data"`
UserData string `json:"user_data,omitempty"`
}

// InstanceCreateOptions require only Region and Type
Expand Down

0 comments on commit 048bc8b

Please sign in to comment.