xend: fix vscsi error path

Fix xend start problem on non-Linux Dom0 where /proc/mount doesn't exist.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
This commit is contained in:
Keir Fraser committed 2009-03-20 08:42:59 +00:00
1 parent f7ffd86d52
commit e8f30212b1
1 file changed
+4 -1
+4 -1
View File
@@ -112,7 +112,10 @@ def _vscsi_get_scsidevices_by_sysfs():
""" get all scsi devices information by sysfs """
devices = []
sysfs_mnt = utils.find_sysfs_mount()
try:
sysfs_mnt = utils.find_sysfs_mount()
except:
return devices
for dirpath, dirnames, files in os.walk(sysfs_mnt + SYSFS_SCSI_PATH):
for hctl in dirnames:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.