commit fc9fb383c16ecb98b1b546f21e7fabb5f00a42ac
Author: Sean Mooney <email address hidden>
Date: Tue Aug 13 18:58:41 2019 +0100
lxc: make use of filter python3 compatible
_detect_nbd_devices uses the filter
builtin internally to filter valid devices.
In python 2, filter returns a list. In python 3,
filter returns an iterable or generator function.
This change eagerly converts the result of calling filter
to a list to preserve the python 2 behaviour under python 3.
Reviewed: https:/ /review. opendev. org/676263 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=fc9fb383c16 ecb98b1b546f21e 7fabb5f00a42ac
Committed: https:/
Submitter: Zuul
Branch: master
commit fc9fb383c16ecb9 8b1b546f21e7fab b5f00a42ac
Author: Sean Mooney <email address hidden>
Date: Tue Aug 13 18:58:41 2019 +0100
lxc: make use of filter python3 compatible
_detect_ nbd_devices uses the filter
builtin internally to filter valid devices.
In python 2, filter returns a list. In python 3,
filter returns an iterable or generator function.
This change eagerly converts the result of calling filter
to a list to preserve the python 2 behaviour under python 3.
Closes-Bug: #1840068
Change-Id: I25616c5761ea62 5a15d725777ae58 175651558f8