commit 0449fd1f89ab513059188427ff3bc5e9dbbc0546
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.
NOTE(mriedem): In this backport the test module needs a mock
import since change Ib5e585fa4bfb99617cd3ca983674114d323a3cce
is not in Pike.
Closes-Bug: #1840068
Change-Id: I25616c5761ea625a15d725777ae58175651558f8
(cherry picked from commit fc9fb383c16ecb98b1b546f21e7fabb5f00a42ac)
(cherry picked from commit e135afec851e33148644d024a9d78e56f962efd4)
(cherry picked from commit 944c08ff764c1cb598dbebbad8aa51bbdd0a692c)
(cherry picked from commit 04bcb98678c1289810f5a8542b5bf9fe7aeeaa12)
Reviewed: https:/ /review. opendev. org/676502 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=0449fd1f89a b513059188427ff 3bc5e9dbbc0546
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 0449fd1f89ab513 059188427ff3bc5 e9dbbc0546
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.
NOTE(mriedem): In this backport the test module needs a mock 617cd3ca9836741 14d323a3cce
import since change Ib5e585fa4bfb99
is not in Pike.
Closes-Bug: #1840068
Change-Id: I25616c5761ea62 5a15d725777ae58 175651558f8 8b1b546f21e7fab b5f00a42ac) 48644d024a9d78e 56f962efd4) 598dbebbad8aa51 bbdd0a692c) 810f5a8542b5bf9 fe7aeeaa12)
(cherry picked from commit fc9fb383c16ecb9
(cherry picked from commit e135afec851e331
(cherry picked from commit 944c08ff764c1cb
(cherry picked from commit 04bcb98678c1289