]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: fix check for if devices have changed
authorAdam King <adking@redhat.com>
Wed, 9 Nov 2022 18:24:25 +0000 (13:24 -0500)
committerAdam King <adking@redhat.com>
Fri, 2 Dec 2022 14:24:11 +0000 (09:24 -0500)
commit55661cc859a5160822b5293f7cc49d6fdb5b715d
tree2bd8b3c44b4030d7647a5e1d375a27152a23339b
parent67503786069caa4d40367c9e36a2e5d6e0815b19
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>
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