diff options
author | Vishvananda Ishaya <vishvananda@gmail.com> | 2013-02-20 10:53:40 -0800 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2013-02-20 11:01:16 -0800 |
commit | fe5382819a8e21d3c32832d92c41477df21c34fa (patch) | |
tree | 1430e6c3170512038ce3b4b7d4fba0d387912aa4 /nova/utils.py | |
parent | f478fa696746ba61f3749a9b0559bbbaaf25cfa5 (diff) | |
download | nova-fe5382819a8e21d3c32832d92c41477df21c34fa.tar.gz nova-fe5382819a8e21d3c32832d92c41477df21c34fa.tar.xz nova-fe5382819a8e21d3c32832d92c41477df21c34fa.zip |
libvirt: fix volume walk of /dev/disk/by-path
If /dev/disk/by-path does not exist, then _get_iscsi_devices() will
raise an IndexError. Handle this case and return an empty list. This
fixes a test on OSX.
Fixes bug 1130841
Change-Id: Ibae2f1238feac9a10b8dc2b74886ea59edac0bcc
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions