Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omitting omitempty for the variable createuser and making it bool #44

Merged
merged 1 commit into from
Jan 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/models/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type CreateInstanceBodyConfig struct {
VmwareDomainName string `json:"vmwareDomainName,omitempty"`
VmwareCustomSpec string `json:"vmwareCustomSpec,omitempty"`
NestedVirtualization string `json:"nestedVirtualization,omitempty"`
CreateUser string `json:"createUser,omitempty"`
CreateUser bool `json:"createUser"`
VMwareFolderID string `json:"vmwareFolderId,omitempty"`
}

Expand Down Expand Up @@ -192,7 +192,7 @@ type GetInstanceResponseInstanceConfig struct {
Isvpcselectable bool `json:"isVpcSelectable,omitempty"`
Smbiosassettag string `json:"smbiosAssetTag,omitempty"`
Isec2 bool `json:"isEC2,omitempty"`
Createuser interface{} `json:"createUser,omitempty"`
Createuser bool `json:"createUser"`
Nestedvirtualization interface{} `json:"nestedVirtualization,omitempty"`
Vmwarefolderid string `json:"vmwareFolderId,omitempty"`
Expose []interface{} `json:"expose,omitempty"`
Expand Down