aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@entel.upc.edu>2011-07-23 08:58:37 +0100
committerRoger Pau Monne <roger.pau@entel.upc.edu>2011-07-23 08:58:37 +0100
commitb74ae3bf6395569694e77f98fef5eb9ea31d3229 (patch)
tree01c71039a8569e5d3825cd05e91dfe6a70af3a4d /tools/python
parent789bec4724e4633eb2668cfd0124e789c5d8000d (diff)
downloadxen-b74ae3bf6395569694e77f98fef5eb9ea31d3229.tar.gz
xen-b74ae3bf6395569694e77f98fef5eb9ea31d3229.tar.bz2
xen-b74ae3bf6395569694e77f98fef5eb9ea31d3229.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>
Diffstat (limited to 'tools/python')
-rw-r--r--tools/python/xen/util/pci.py1
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