]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: fix check for if devices have changed 49864/head
authorAdam King <adking@redhat.com>
Wed, 9 Nov 2022 18:24:25 +0000 (13:24 -0500)
committerAdam King <adking@redhat.com>
Wed, 25 Jan 2023 00:46:59 +0000 (19:46 -0500)
commitffd100305f8e694f64c377a57c91c6fc6a9b6bd3
tree7501405990a4186d3e4b82925bec7d03a0fd232e
parent22c2d68820ab09fd18a2b41e5a46b6e888789c40
mgr/cephadm: fix check for if devices have changed

Directly comparing the dicts doesn't work since the
"created" field was added in. We should instead make use
of the existing Devices equality function.

Fixes: https://tracker.ceph.com/issues/57999
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 55661cc859a5160822b5293f7cc49d6fdb5b715d)
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/dashboard/tests/test_host.py
src/python-common/ceph/deployment/inventory.py
src/python-common/ceph/tests/test_inventory.py