commit 04bcb98678c1289810f5a8542b5bf9fe7aeeaa12
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: I25616c5761ea625a15d725777ae58175651558f8
(cherry picked from commit fc9fb383c16ecb98b1b546f21e7fabb5f00a42ac)
(cherry picked from commit e135afec851e33148644d024a9d78e56f962efd4)
(cherry picked from commit 944c08ff764c1cb598dbebbad8aa51bbdd0a692c)
Reviewed: https:/ /review. opendev. org/676500 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=04bcb98678c 1289810f5a8542b 5bf9fe7aeeaa12
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 04bcb98678c1289 810f5a8542b5bf9 fe7aeeaa12
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 8b1b546f21e7fab b5f00a42ac) 48644d024a9d78e 56f962efd4) 598dbebbad8aa51 bbdd0a692c)
(cherry picked from commit fc9fb383c16ecb9
(cherry picked from commit e135afec851e331
(cherry picked from commit 944c08ff764c1cb