Skip to content

Commit

Permalink
vSphere vdisk - Adding set on read for tfstate information
Browse files Browse the repository at this point in the history
  • Loading branch information
dkalleg committed May 3, 2016
1 parent d668a93 commit fb7e6f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builtin/providers/vsphere/resource_vsphere_virtual_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ func resourceVSphereVirtualDiskRead(d *schema.ResourceData, meta interface{}) er
return err
}
log.Printf("[DEBUG] resourceVSphereVirtualDiskRead - fileinfo: %v", fileInfo.GetFileInfo())

d.SetId(vDisk.vmdkPath)
d.Set("vmdk_path", vDisk.vmdkPath)
d.Set("datacenter", d.Get("datacenter"))
d.Set("datastore", d.Get("datastore"))
// Todo collect and write size, type info

return nil
Expand Down

0 comments on commit fb7e6f0

Please sign in to comment.