Commit 00fc17e6 authored by deads2k's avatar deads2k

abac policy file parsing bug

parent 1065302b
......@@ -78,9 +78,9 @@ func NewFromFile(path string) (policyList, error) {
scanner := bufio.NewScanner(file)
pl := make(policyList, 0)
var p policy
for scanner.Scan() {
var p policy
b := scanner.Bytes()
// TODO: skip comment lines.
err = json.Unmarshal(b, &p)
......
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