summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannik Schönartz2021-03-23 20:02:04 +0100
committerJannik Schönartz2021-03-23 20:02:04 +0100
commit42478ced679cf6f50b6bbff512178467655d79fa (patch)
treeca6fd415f5af01b79a30e202a30e5c5353e32b71
parent[ipxe] This was uncommited on productive ... (diff)
downloadbas-42478ced679cf6f50b6bbff512178467655d79fa.tar.gz
bas-42478ced679cf6f50b6bbff512178467655d79fa.tar.xz
bas-42478ced679cf6f50b6bbff512178467655d79fa.zip
[server/pci] Add gitignore & small bugfix
-rw-r--r--server/.gitignore3
-rw-r--r--server/lib/pci/index.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/server/.gitignore b/server/.gitignore
index 94cc4f7..bbf8ed2 100644
--- a/server/.gitignore
+++ b/server/.gitignore
@@ -6,6 +6,7 @@
/ipxe/ipxeGIT
/ipxe/ipxelog
+/lib/pci/pci.ids
.DS_Store
node_modules/
@@ -23,4 +24,4 @@ yarn-error.log*
*.suo
*.ntvs*
*.njsproj
-*.sln \ No newline at end of file
+*.sln
diff --git a/server/lib/pci/index.js b/server/lib/pci/index.js
index 282ad1f..d43e154 100644
--- a/server/lib/pci/index.js
+++ b/server/lib/pci/index.js
@@ -15,7 +15,7 @@ var parsedDeviceClasses = {}
module.exports = {
parseIds: async function (vendorId, deviceId, subvendorId, subdeviceId, classId, subclassId) {
await updatePciIds()
- if (Object.keys(parsedPciList).length === 0) await parsePciList()
+ if (Object.keys(parsedPciList).length === 0) parsePciList()
let pciInformation = {
'vendor': vendorId && vendorId.length === 4 ? {