group/htgroup: allow empty group
This commit is contained in:
@@ -88,7 +88,7 @@ class Group(group.BaseGroup):
|
|||||||
try:
|
try:
|
||||||
group, members = line.split(":", maxsplit=1)
|
group, members = line.split(":", maxsplit=1)
|
||||||
skip = False
|
skip = False
|
||||||
if group == "" or members == "":
|
if group == "":
|
||||||
if init is True:
|
if init is True:
|
||||||
raise ValueError("htgroup file contains problematic line not matching <group>:<members> in line: %d" % line_num)
|
raise ValueError("htgroup file contains problematic line not matching <group>:<members> in line: %d" % line_num)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user