Merge pull request #7310 from hashicorp/fix_7286

also strip \r to work around windows file ending strangeness
pull/7317/head
Megan Marsh 7 years ago committed by GitHub
commit cb5c896c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47,7 +47,7 @@ type ESX5Driver struct {
func (d *ESX5Driver) Clone(dst, src string, linked bool) error {
linesToArray := func(lines string) []string { return strings.Split(strings.Trim(lines, "\n"), "\n") }
linesToArray := func(lines string) []string { return strings.Split(strings.Trim(lines, "\r\n"), "\n") }
d.SetOutputDir(path.Dir(filepath.ToSlash(dst)))
srcVmx := d.datastorePath(src)

Loading…
Cancel
Save