func ValidateLXDProfile(profiler LXDProfiler) error {
	// if profiler is nil, there is no available profiler to call LXDProfile
	// then return out early
	if profiler == nil {
		return nil
	}
	// Profile from the api could be nil, so check that it isn't
	if profile := profiler.LXDProfile(); profile != nil {
		err := profile.ValidateConfigDevices()
		return errors.Trace(err)
	}
	return nil
}
// ValidateLXDProfile will validate the profile to determin if the configuration
// is valid or not before passing continuing on.
ValidateLXDProfile will validate the profile to determin if the configuration
is valid or not before passing continuing on.
// ValidateLXDProfile will validate the profile to determin if the configuration // is valid or not before passing continuing on .
func ValidateLXDProfile(profiler LXDProfiler) error {
	if profiler == nil {
		return nil
	}
	if profile := profiler.LXDProfile(); profile != nil {
		err := profile.ValidateConfigDevices()
		return errors.Trace(err)
	}
	return nil
}
func ValidateLXDProfile ( profiler LXDProfiler ) error { if profiler == nil { return nil } if profile := profiler . LXDProfile ( ) ; profile != nil { err := profile . ValidateConfigDevices ( ) return errors . Trace ( err ) } return nil }
ValidateLXDProfile will validate the profile to determin if the configuration
is valid or not before passing continuing on.
ValidateLXDProfile will validate the profile to determin if the configuration is valid or not before passing continuing on .
// if profiler is nil, there is no available profiler to call LXDProfile // then return out early // Profile from the api could be nil, so check that it isn't