From: Sage Weil Date: Sun, 23 Feb 2020 14:31:03 +0000 (-0600) Subject: mgr/cephadm: fix last_device_update persistence X-Git-Tag: v15.1.1~271^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8525de44b46a78129ffcf0665f1639fd73a19c80;p=ceph.git mgr/cephadm: fix last_device_update persistence Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 0a5ea3b06690..7d8ee5738a05 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -180,6 +180,8 @@ class HostCache(): } if host in self.last_daemon_update: j['last_daemon_update'] = self.last_daemon_update[host].strftime(DATEFMT) # type: ignore + if host in self.last_device_update: + j['last_device_update'] = self.last_device_update[host].strftime(DATEFMT) # type: ignore for name, dd in self.daemons[host].items(): j['daemons'][name] = dd.to_json() # type: ignore for d in self.devices[host]: