]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: fix check for if devices have changed 49916/head
authorAdam King <adking@redhat.com>
Wed, 9 Nov 2022 18:24:25 +0000 (13:24 -0500)
committerAdam King <adking@redhat.com>
Mon, 30 Jan 2023 22:18:24 +0000 (17:18 -0500)
commitd5bfd0f950b3de983a4f4ebab7a0ddb901a47c30
tree3d767a982dfa6d8e85cd04ccbaf2a7b206d6e9ee
parent529acda03fc93e2e9c3f054b190d9c3965bdf724
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)

Conflicts:
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/dashboard/tests/test_host.py
src/python-common/ceph/deployment/inventory.py
src/python-common/ceph/tests/test_inventory.py