'ceph telemetry status' now shows the last sent report date.
Fixes: https://tracker.ceph.com/issues/44040
Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
(cherry picked from commit
3a25c912a702c7ec93002a105217a7ff80a67dc9)
Conflicts:
- path: src/pybind/mgr/telemetry/module.py
comment: nautilus version of json.dumps() don't have sort_keys arg.
r = {}
for opt in self.MODULE_OPTIONS:
r[opt['name']] = getattr(self, opt['name'])
+ r['last_upload'] = time.ctime(self.last_upload) if self.last_upload else self.last_upload
return 0, json.dumps(r, indent=4), ''
elif command['prefix'] == 'telemetry on':
if command.get('license') != LICENSE: