puppetlabs/cfacter — pull request #126 by vrthra (2014-09-12 01:11:13+00:00)
Title: (CFACT-70) maintenance - refactor usage of kstat to a wrapper

kstat APIs are used by solaris and other systems like free bsd to fetch kernel statistics. This patch refactors the kstat invocations into a simpler wrapper that handles both errors and data retrieval.