4.10.0
This commit is contained in:
@@ -57,7 +57,6 @@ func resourceFlipgroupCreate(ctx context.Context, d *schema.ResourceData, m inte
|
||||
Name: d.Get("name").(string),
|
||||
NetType: d.Get("net_type").(string),
|
||||
NetID: uint64(d.Get("net_id").(int)),
|
||||
ClientType: d.Get("client_type").(string),
|
||||
IP: d.Get("ip").(string),
|
||||
Description: d.Get("desc").(string),
|
||||
}
|
||||
@@ -72,6 +71,10 @@ func resourceFlipgroupCreate(ctx context.Context, d *schema.ResourceData, m inte
|
||||
|
||||
var warnings dc.Warnings
|
||||
|
||||
if clientType, ok := d.GetOk("client_type"); ok {
|
||||
req.ClientType = clientType.(string)
|
||||
}
|
||||
|
||||
if client_ids, ok := d.GetOk("client_ids"); ok {
|
||||
casted := client_ids.([]interface{})
|
||||
addComputesAfterCreation(ctx, &warnings, c, casted, resp.ID)
|
||||
@@ -180,7 +183,8 @@ func resourceFlipgroupSchemaMake() map[string]*schema.Schema {
|
||||
},
|
||||
"client_type": {
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
Optional: true,
|
||||
Default: "compute",
|
||||
Description: "Type of client, 'compute' ('vins' will be later)",
|
||||
ValidateFunc: validation.StringInSlice([]string{"compute"}, true),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user