libvirt: Delete the lase_device of find_disk_dev_for_disk_bus
Delete the last_device parameters of find_disk_dev_for_disk_bus.
Just pick the first available letter on the bus as the device,
instead of hardcoding on the last device for config drive. Also
tweak the test case for this.
Closes-bug: #1591827
Change-Id: I6343d7ab6f1b0aa58f29805e24db7e2c61d1409e
Signed-off-by: Kevin Zhao <email address hidden>
(cherry picked from commit d442c1aa31b0a0cbfa0d057e8b6574002ee2e2fc)
Reviewed: https:/ /review. openstack. org/403256 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3d0ec34865d f871f448525fca2 beca4f83accae3
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 3d0ec34865df871 f448525fca2beca 4f83accae3
Author: KevinZhao <email address hidden>
Date: Mon Jun 13 02:14:51 2016 +0000
libvirt: Delete the lase_device of find_disk_ dev_for_ disk_bus
Delete the last_device parameters of find_disk_ dev_for_ disk_bus.
Just pick the first available letter on the bus as the device,
instead of hardcoding on the last device for config drive. Also
tweak the test case for this.
Closes-bug: #1591827 a58f29805e24db7 e2c61d1409e bfa0d057e8b6574 002ee2e2fc)
Change-Id: I6343d7ab6f1b0a
Signed-off-by: Kevin Zhao <email address hidden>
(cherry picked from commit d442c1aa31b0a0c