diff options
author | Roger Pau Monne <roger.pau@entel.upc.edu> | 2011-07-23 09:01:25 +0100 |
---|---|---|
committer | Roger Pau Monne <roger.pau@entel.upc.edu> | 2011-07-23 09:01:25 +0100 |
commit | 766ecd0fe9095d5367a1e48ab24c2d48c0192532 (patch) | |
tree | b63338703da96e879aa21df335f24aec4fd87f03 | |
parent | 799262d12ab2fadd3abd61c300763e793b52fbb1 (diff) | |
download | xen-766ecd0fe9095d5367a1e48ab24c2d48c0192532.tar.gz xen-766ecd0fe9095d5367a1e48ab24c2d48c0192532.tar.bz2 xen-766ecd0fe9095d5367a1e48ab24c2d48c0192532.zip |
xend: remove PCI device listing from NetBSD, since it's Linux
specific code.
Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
xen-unstable changeset: 23738:88847c424eec
xen-unstable date: Sat Jul 23 08:58:37 2011 +0100
-rw-r--r-- | tools/python/xen/util/pci.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/python/xen/util/pci.py b/tools/python/xen/util/pci.py index b889d1816e..98bea1aead 100644 --- a/tools/python/xen/util/pci.py +++ b/tools/python/xen/util/pci.py @@ -462,6 +462,7 @@ def find_sysfs_mnt(): return None def get_all_pci_names(): + if not sys.platform.startswith('linux'): return [] sysfs_mnt = find_sysfs_mnt() if sysfs_mnt is None: return None |