group/htgroup: allow empty group

This commit is contained in:
Peter Bieringer
2026-07-19 12:30:46 +02:00
parent c1135c87cb
commit cd73937132

View File

@@ -88,7 +88,7 @@ class Group(group.BaseGroup):
try:
group, members = line.split(":", maxsplit=1)
skip = False
if group == "" or members == "":
if group == "":
if init is True:
raise ValueError("htgroup file contains problematic line not matching <group>:<members> in line: %d" % line_num)
else: