saltstack/salt — pull request #2203 by romeotheriault (2012-10-09 02:33:59+00:00)
Title: Not make cpu_model grain rely on cpu0 existing

In some cases, on solaris, the first cpu may not always be cpu0. This patch fixes the issue Sean mentioned here:

https://github.com/saltstack/salt/commit/9fd2a8669a7f1134205443c2f1f8724f6dca4eac#commitcomment-1964653

by making the kstat call not rely on any particular cpu# existing. It just calls all the cpu data and grabs the first one which ever # that may be.