"%s conflict with pre-defined group %q",
errPrefix, name)
}
- if hosts.Map[name] != nil {
+ if hosts.Map[name] != nil ||
+ hosts.Map[strings.TrimSuffix(name,
+ GroupRemoveSuffix)] != nil {
return nil, fmt.Errorf(
"%s conflict with existing host",
errPrefix)
if hosts.Map[x] != nil || groups[x] != nil {
continue
}
- return nil, fmt.Errorf("%s group %q not found",
+ return nil, fmt.Errorf("%s member %q not found",
errPrefix, x)
}
}