Skip to content

Commit 984c19f

Browse files
committed
dont call config/details on config 0
1 parent e2277c9 commit 984c19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instance/cloudServerCreate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func (ci *Client) CloudServerCreate(params *CloudServerCreateParams) (string, er
217217

218218
// when creating with a config-id, adjust the Type param for bare-metal types if blatantly wrong
219219
var configDetails apiTypes.CloudConfigDetails
220-
if params.ConfigId != -1 {
220+
if params.ConfigId > 0 {
221221
if err := ci.CallLwApiInto("bleed/storm/config/details",
222222
map[string]interface{}{"id": params.ConfigId}, &configDetails); err != nil {
223223
return "", err

0 commit comments

Comments
 (0)