http://git.etherboot.org
/
people
/
stefanha
/
gpxebot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22dd9b8
)
Fix bin/NIC parsing for PCI ID lookup
author
Stefan Hajnoczi
<stefanha@gmail.com>
Sat, 20 Mar 2010 05:15:57 +0000
(
05:15
+0000)
committer
Stefan Hajnoczi
<stefanha@gmail.com>
Sat, 20 Mar 2010 05:15:57 +0000
(
05:15
+0000)
cmds.py
patch
|
blob
|
history
diff --git
a/cmds.py
b/cmds.py
index
a7bd995
..
82defdf
100644
(file)
--- a/
cmds.py
+++ b/
cmds.py
@@
-106,10
+106,10
@@
def lspci_command(who, _, replyto, words):
try:
for line in open(config.NICFILE):
- line = line.
strip(
)
+ line = line.
rstrip('\r\n'
)
if not line or line.startswith('#'):
continue
- fields = line.split()
+ fields = line.split(
'\t'
)
if fields[0] == 'family':
driver = fields[1].split('/')[-1]