Merge pull request #6356 from deads2k/deads-parse-error

abac policy file parsing bug
pull/6/head
Brendan Burns 2015-04-02 09:28:59 -07:00
commit 67003f323a
1 changed files with 1 additions and 1 deletions

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)