saltstack/salt — pull request #8108 by zmarano (2013-10-25 20:54:47+00:00)
Title: Fix for Linux gpus grain, issue #6945

Fixes issue #6945.
There is probably a much better way to do this but this is a quick and easy fix which doesn't require rewriting all the logic in this function. Append a blank string onto the list created by lspci_out.splitlines() so that the code for identifying devices doesn't ignore the last device from the lspci output.