Skip to content

Commit

Permalink
Update resource_vsphere_file.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitmaggo authored Jun 15, 2021
1 parent ac77fa5 commit 677a35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsphere/resource_vsphere_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func createFile(client *govmomi.Client, f *file) error {
if err != nil {
return fmt.Errorf("error %s", err)
}
case path.Ext(f.sourceFile) == ".vmdk":
case path.Ext(f.sourceFile) == ".vmdk":
_, fileName := path.Split(f.destinationFile)
// Temporary directory path to upload VMDK file.
tempDstFile := fmt.Sprintf("tfm-temp-%d/%s", time.Now().Nanosecond(), fileName)
Expand Down

0 comments on commit 677a35c

Please sign in to comment.