Skip to content

Commit

Permalink
when private parent, ConfigId should always be 0 here
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsullivan committed Feb 8, 2021
1 parent 18b4904 commit 7824c1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions instance/cloudServerCreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (ci *Client) CloudServerCreate(params *CloudServerCreateParams) (string, er
if params.Vcpu == -1 {
return "", fmt.Errorf("--vcpu is required when specifying --private-parent")
}
params.ConfigId = 0
} else {
if params.ConfigId <= 0 {
return "", fmt.Errorf("--config-id is required when not specifying --private-parent")
Expand Down

0 comments on commit 7824c1f

Please sign in to comment.