Comment 5 for bug 1844974

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-upgrade (stable/stein)

Reviewed: https://review.opendev.org/684725
Committed: https://git.openstack.org/cgit/openstack/tripleo-upgrade/commit/?id=b70b3e0a2b5596dc51fc4d5a342ae424af93d27f
Submitter: Zuul
Branch: stable/stein

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)