jaypipes / pcidb

Small golang library for querying PCI database (pciids) information
Apache License 2.0
33 stars 15 forks source link

Fix fetching of PCI IDs file #27

Closed martinkennelly closed 3 years ago

martinkennelly commented 3 years ago

Remote host requires user agent header to be set to get PCI IDs file.

Signed-off-by: Kennelly, Martin martin.kennelly@intel.com

Remote server denies pulling PCI ID file due to user agent not set and upon failure pcidb then leaves a blank file in ~/.cache so the next time this software is run, it does not retry fetching.

See comment for error output: https://github.com/k8snetworkplumbingwg/sriov-network-device-plugin/pull/306#issuecomment-756785623