commit b70b3e0a2b5596dc51fc4d5a342ae424af93d27f
Author: Jose Luis Franco Arza <email address hidden>
Date: Mon Sep 23 10:10:49 2019 +0200
Handle when ceph_osds is a dictionary or a list.
The ceph_osds variable is obtained from the ceph configuration
and it seems it can be a dictionary formed by the osds directories
as keys, example {'/dev/vdc': {}, '/dev/vdb': {}, '/dev/vdf': {},
'/dev/vde': {}, '/dev/vdd': {}} .
For that reason, we need to differentiate when the variable is
a list or a dictionary, as otherwise the loop variable won't be
able to iterate over the values.
Change-Id: Ib7aded0ff3668079dbe43cc3fbfa6a7e067cec83
Closes-Bug: #1844974
(cherry picked from commit 75290252d7bd22540a10a47ba6f5477d85c5a542)
Reviewed: https:/ /review. opendev. org/684725 /git.openstack. org/cgit/ openstack/ tripleo- upgrade/ commit/ ?id=b70b3e0a2b5 596dc51fc4d5a34 2ae424af93d27f
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit b70b3e0a2b5596d c51fc4d5a342ae4 24af93d27f
Author: Jose Luis Franco Arza <email address hidden>
Date: Mon Sep 23 10:10:49 2019 +0200
Handle when ceph_osds is a dictionary or a list.
The ceph_osds variable is obtained from the ceph configuration
and it seems it can be a dictionary formed by the osds directories
as keys, example {'/dev/vdc': {}, '/dev/vdb': {}, '/dev/vdf': {},
'/dev/vde': {}, '/dev/vdd': {}} .
For that reason, we need to differentiate when the variable is
a list or a dictionary, as otherwise the loop variable won't be
able to iterate over the values.
Change-Id: Ib7aded0ff36680 79dbe43cc3fbfa6 a7e067cec83 40a10a47ba6f547 7d85c5a542)
Closes-Bug: #1844974
(cherry picked from commit 75290252d7bd225