From 8525de44b46a78129ffcf0665f1639fd73a19c80 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 23 Feb 2020 08:31:03 -0600 Subject: [PATCH] mgr/cephadm: fix last_device_update persistence Signed-off-by: Sage Weil --- src/pybind/mgr/cephadm/module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 0a5ea3b0669..7d8ee5738a0 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]: -- 2.39.5