Merge pull request #3131 from lwander/gce-fix-metadata
Brought GCE project metadata code up to spec with GCE API change
This commit is contained in:
commit
455ba7bdb1
|
@ -128,7 +128,7 @@ func resourceComputeProjectMetadataRead(d *schema.ResourceData, meta interface{}
|
||||||
newMD := make(map[string]interface{})
|
newMD := make(map[string]interface{})
|
||||||
|
|
||||||
for _, kv := range md.Items {
|
for _, kv := range md.Items {
|
||||||
newMD[kv.Key] = kv.Value
|
newMD[kv.Key] = *kv.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = d.Set("metadata", newMD); err != nil {
|
if err = d.Set("metadata", newMD); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue