)]}'
{"lib/facter/pci_address.rb":[{"author":{"_account_id":14985,"name":"Alex Schultz","email":"aschultz@next-development.com","username":"mwhahaha"},"change_message_id":"98bd11af8692028b154ce27d00cbc89b923d9658","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# lspci command is not availble in ubuntu xenial gate, need to work on it."},{"line_number":2,"context_line":"os \u003d Facter.value(\u0027operatingsystem\u0027)"},{"line_number":3,"context_line":"case os"},{"line_number":4,"context_line":"when /CentOS|RedHat/"}],"source_content_type":"text/x-ruby","patch_set":3,"id":"dada55a8_bfb9947b","line":1,"updated":"2016-07-20 14:41:38.000000000","message":"It would be better to just parse /proc/bus/pci/devices instead since you\u0027re just looking for the driver and pci-id.  Personally my preferred method for generating these facts would be to parse the devices file rather than use lspci as then it would work even if lspci is unavailable.","commit_id":"8577360d172065e9aa33958011735a565b2593e2"},{"author":{"_account_id":18575,"name":"Saravanan KR","email":"krsacme@gmail.com","username":"saravanankr"},"change_message_id":"26b28d29ee0c7ab8ffdf4ec1eb51eacaefbe2af3","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# lspci command is not availble in ubuntu xenial gate, need to work on it."},{"line_number":2,"context_line":"os \u003d Facter.value(\u0027operatingsystem\u0027)"},{"line_number":3,"context_line":"case os"},{"line_number":4,"context_line":"when /CentOS|RedHat/"}],"source_content_type":"text/x-ruby","patch_set":3,"id":"dada55a8_ec232854","line":1,"in_reply_to":"dada55a8_bfb9947b","updated":"2016-07-21 14:32:43.000000000","message":"Done","commit_id":"8577360d172065e9aa33958011735a565b2593e2"},{"author":{"_account_id":14985,"name":"Alex Schultz","email":"aschultz@next-development.com","username":"mwhahaha"},"change_message_id":"98bd11af8692028b154ce27d00cbc89b923d9658","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# lspci command is not availble in ubuntu xenial gate, need to work on it."},{"line_number":2,"context_line":"os \u003d Facter.value(\u0027operatingsystem\u0027)"},{"line_number":3,"context_line":"case os"},{"line_number":4,"context_line":"when /CentOS|RedHat/"},{"line_number":5,"context_line":"  drivers_details\u003d%x{lspci -Dvmmkn}"},{"line_number":6,"context_line":"  drivers_lines\u003ddrivers_details.split(\"\\n\")"},{"line_number":7,"context_line":""}],"source_content_type":"text/x-ruby","patch_set":3,"id":"dada55a8_84a8c58e","line":4,"updated":"2016-07-20 14:41:38.000000000","message":"It\u0027s better to check for the existence of lspci rather than do this as there is no guarantee that the end user will match the gates","commit_id":"8577360d172065e9aa33958011735a565b2593e2"},{"author":{"_account_id":14985,"name":"Alex Schultz","email":"aschultz@next-development.com","username":"mwhahaha"},"change_message_id":"98bd11af8692028b154ce27d00cbc89b923d9658","unresolved":false,"context_lines":[{"line_number":2,"context_line":"os \u003d Facter.value(\u0027operatingsystem\u0027)"},{"line_number":3,"context_line":"case os"},{"line_number":4,"context_line":"when /CentOS|RedHat/"},{"line_number":5,"context_line":"  drivers_details\u003d%x{lspci -Dvmmkn}"},{"line_number":6,"context_line":"  drivers_lines\u003ddrivers_details.split(\"\\n\")"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"  drivers\u003dHash.new"}],"source_content_type":"text/x-ruby","patch_set":3,"id":"dada55a8_a4918949","line":5,"updated":"2016-07-20 14:41:38.000000000","message":"Facter::Util::Resolution.exec(\"\u003ccmd\u003e\") is I think the prefered method to do this type of thing.","commit_id":"8577360d172065e9aa33958011735a565b2593e2"},{"author":{"_account_id":18575,"name":"Saravanan KR","email":"krsacme@gmail.com","username":"saravanankr"},"change_message_id":"26b28d29ee0c7ab8ffdf4ec1eb51eacaefbe2af3","unresolved":false,"context_lines":[{"line_number":2,"context_line":"os \u003d Facter.value(\u0027operatingsystem\u0027)"},{"line_number":3,"context_line":"case os"},{"line_number":4,"context_line":"when /CentOS|RedHat/"},{"line_number":5,"context_line":"  drivers_details\u003d%x{lspci -Dvmmkn}"},{"line_number":6,"context_line":"  drivers_lines\u003ddrivers_details.split(\"\\n\")"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"  drivers\u003dHash.new"}],"source_content_type":"text/x-ruby","patch_set":3,"id":"dada55a8_0c15dce3","line":5,"in_reply_to":"dada55a8_a4918949","updated":"2016-07-21 14:32:43.000000000","message":"Done","commit_id":"8577360d172065e9aa33958011735a565b2593e2"}]}
