// It's important that baseConfig and newConfig are passed by value!
It's important that baseConfig and newConfig are passed by value!
// It ' s important that baseConfig and newConfig are passed by value!
func checkVMConfig(config1, config2 vc.VMConfig) error {
	if config1.HypervisorType != config2.HypervisorType {
		return fmt.Errorf("hypervisor type does not match: %s vs. %s", config1.HypervisorType, config2.HypervisorType)
	}
	resetHypervisorConfig(&config1)
	resetHypervisorConfig(&config2)
	if !utils.DeepCompare(config1, config2) {
		return fmt.Errorf("hypervisor config does not match, base: %+v. new: %+v", config1, config2)
	}
	return nil
}
func checkVMConfig ( config1 , config2 vc . VMConfig ) error { if config1 . HypervisorType != config2 . HypervisorType { return fmt . Errorf ( " " , config1 . HypervisorType , config2 . HypervisorType ) } resetHypervisorConfig ( & config1 ) resetHypervisorConfig ( & config2 ) if ! utils . DeepCompare ( config1 , config2 ) { return fmt . Errorf ( " " , config1 , config2 ) } return nil }
It's important that baseConfig and newConfig are passed by value!
It ' s important that baseConfig and newConfig are passed by value!
// check hypervisor config details