Skip to content

Commit c3397ce

Browse files
authored
Merge pull request #34 from liquidweb/message-fix
fix config-id flag name in messages
2 parents 2ae2e32 + 35d3ad2 commit c3397ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

instance/cloudServerCreate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (ci *Client) CloudServerCreate(params *CloudServerCreateParams) (string, er
9494
// sanity check flags
9595
if params.PrivateParent != "" {
9696
if params.ConfigId > 0 {
97-
return "", fmt.Errorf("--config_id must be 0 or omitted when specifying --private-parent")
97+
return "", fmt.Errorf("--config-id must be 0 or omitted when specifying --private-parent")
9898
}
9999
// create on a private parent. diskspace, memory, vcpu are required.
100100
if params.Memory == -1 {
@@ -108,7 +108,7 @@ func (ci *Client) CloudServerCreate(params *CloudServerCreateParams) (string, er
108108
}
109109
} else {
110110
if params.ConfigId <= 0 {
111-
return "", fmt.Errorf("--config_id is required when not specifying --private-parent")
111+
return "", fmt.Errorf("--config-id is required when not specifying --private-parent")
112112
}
113113
// not on a private parent, shouldnt pass private parent flags
114114
if params.Memory != -1 {

0 commit comments

Comments
 (0)