]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: return a list instead of an iterator 23392/head
authorAlexander Graul <agraul@suse.com>
Thu, 2 Aug 2018 10:31:47 +0000 (12:31 +0200)
committerAlexander Graul <agraul@suse.com>
Thu, 2 Aug 2018 12:40:11 +0000 (14:40 +0200)
commit6f5a072071116b6f8ba3e350fb6159b834ab0f65
treece8969e7ea974bfb53a7899220c93146caa5df68
parenteb9a9efbf3fc45bdbdb481dd54cde1c5cd16a7ba
ceph-disk: return a list instead of an iterator

Python2 to Python3 changed the return of map() from a list to a
"map object" which is an interator. This commit turns the returned
"map object" of extract_parted_partition_numbers() back into a list.

Fixes: https://tracker.ceph.com/issues/26830
Signed-off-by: Alexander Graul <agraul@suse.com>
src/ceph-disk/ceph_disk/main.py