Commit d0ab6df1 authored by David Foucher's avatar David Foucher

Fix comment retrive in rules

parent a8454154
Pipeline #3466 passed with stage
in 1 minute and 28 seconds
...@@ -113,7 +113,7 @@ def load_rules(path): ...@@ -113,7 +113,7 @@ def load_rules(path):
with path.open() as rules_file: with path.open() as rules_file:
datas = rules_file.read().split('---\n', 1) datas = rules_file.read().split('---\n', 1)
data = datas[0] data = datas[0]
comment = data[1] if len(data) == 2 else '' comment = datas[1] if len(datas) == 2 else ''
# Don't use local path in rule id, so we can call it from a Pointer # Don't use local path in rule id, so we can call it from a Pointer
# value. # value.
id_ = path.name id_ = path.name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment