abac policy file parsing bug

This commit is contained in:
deads2k 2015-04-02 11:13:20 -04:00
parent 1065302bf4
commit 00fc17e690

View File

@ -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)