Skip to content

Commit 7824c1f

Browse files
committed
when private parent, ConfigId should always be 0 here
1 parent 18b4904 commit 7824c1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

instance/cloudServerCreate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ func (ci *Client) CloudServerCreate(params *CloudServerCreateParams) (string, er
110110
if params.Vcpu == -1 {
111111
return "", fmt.Errorf("--vcpu is required when specifying --private-parent")
112112
}
113+
params.ConfigId = 0
113114
} else {
114115
if params.ConfigId <= 0 {
115116
return "", fmt.Errorf("--config-id is required when not specifying --private-parent")

0 commit comments

Comments
 (0)