]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: fix last_device_update persistence
authorSage Weil <sage@redhat.com>
Sun, 23 Feb 2020 14:31:03 +0000 (08:31 -0600)
committerSage Weil <sage@redhat.com>
Mon, 24 Feb 2020 16:35:26 +0000 (10:35 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py

index 0a5ea3b066906dbb578e5b580cfbc4988f2acc82..7d8ee5738a0598d18e414161190fe4cdd1fd9ae9 100644 (file)
@@ -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]: