Exemple #1
0
// EmptyHostParser simply returns a zero value HostData. It asserts that host
// value is empty and returns an error if not.
func EmptyHostParser(module mb.Module, host string) (mb.HostData, error) {
	if host != "" {
		return mb.HostData{}, errors.Errorf("hosts must be empty for %v", module.Name())
	}

	return mb.HostData{}, nil
}