mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 01:26:43 +00:00
Type conversion issue
This commit is contained in:
parent
e14aa8bf39
commit
fee1c7f682
@ -645,7 +645,11 @@ func resourceContainerClusterCreate(d *schema.ResourceData, meta interface{}) er
|
|||||||
}
|
}
|
||||||
|
|
||||||
if v, ok := d.GetOk("resource_labels"); ok {
|
if v, ok := d.GetOk("resource_labels"); ok {
|
||||||
cluster.ResourceLabels = v.(map[string]string)
|
m := make(map[string]string)
|
||||||
|
for k, val := range v.(map[string]interface{}) {
|
||||||
|
m[k] = val.(string)
|
||||||
|
}
|
||||||
|
cluster.ResourceLabels = m
|
||||||
}
|
}
|
||||||
|
|
||||||
req := &containerBeta.CreateClusterRequest{
|
req := &containerBeta.CreateClusterRequest{
|
||||||
|
Loading…
Reference in New Issue
Block a user