提交 44925668 编写于 作者: A Ansgar Burchardt

dak/acl.py: allow comments and empty lines

上级 878714a8
......@@ -77,6 +77,9 @@ def acl_set_fingerprints(acl_name, entries):
acl.fingerprints.clear()
for entry in entries:
entry = entry.strip()
if entry.startswith('#') or len(entry) == 0:
continue
fps = get_fingerprint(entry, session)
if len(fps) == 0:
print "Unknown key for '{0}'".format(entry)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册