puppetlabs / support-script-analyzer

3 stars 3 forks source link

(GH-1) Fix parsing error when facter output has logs #5

Closed jarretlavallee closed 3 years ago

jarretlavallee commented 3 years ago

Prior to this commit, the parsing of the facts would fail due to having debug logging in the facter_output.json. This commit should pull the last json string out of the file to allow for parsing of the facts.

Resolves #1