src/audit/_sync-role.js
function read(callback) {
        let raw = fs.readFileSync(thing.path).toString()
        //let json = thing.path.split('.').reverse()[0] === 'json'
        // TODO add support for role.yaml
        let policies = JSON.parse(raw).policies
        callback(null, policies || [])
      }
function read(callback) {
        let raw = fs.readFileSync(thing.path).toString()
        //let json = thing.path.split('.').reverse()[0] === 'json'
        // TODO add support for role.yaml
        let policies = JSON.parse(raw).policies
        callback(null, policies || [])
      }
function read ( callback ) { let raw = fs . readFileSync ( thing . path ) . toString ( ) //let json = thing.path.split('.').reverse()[0] === 'json' // TODO add support for role.yaml let policies = JSON . parse ( raw ) . policies callback ( null , policies || [ ] ) }
read the managed policies
read the managed policies