vmx.go
func readVmx(path string) (map[string]string, error) {
	data, err := ioutil.ReadFile(path)
	if err != nil {
		return nil, err
	}

	vmx := make(map[string]string)

	for _, line := range strings.Split(string(data), "\n") {
		values := strings.Split(line, "=")
		if len(values) == 2 {
			vmx[strings.TrimSpace(values[0])] = strings.Trim(strings.TrimSpace(values[1]), `"`)
		}
	}

	return vmx, nil
}
func readVmx(path string) (map[string]string, error) {
	data, err := ioutil.ReadFile(path)
	if err != nil {
		return nil, err
	}

	vmx := make(map[string]string)

	for _, line := range strings.Split(string(data), "\n") {
		values := strings.Split(line, "=")
		if len(values) == 2 {
			vmx[strings.TrimSpace(values[0])] = strings.Trim(strings.TrimSpace(values[1]), `"`)
		}
	}

	return vmx, nil
}
// TODO(c4milo): Legacy function, this is to be removed once we migrate
// the dependant code