From f1d3c7454ef231eb7fb4614a5d74614be64fb435 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 17 Jul 2019 11:11:01 -0500 Subject: [PATCH] mgr/crash: verify timestamp is valid Signed-off-by: Sage Weil (cherry picked from commit 277d974b4a74fa40d0305bdc5afc66e2f2186576) --- src/pybind/mgr/crash/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/crash/module.py b/src/pybind/mgr/crash/module.py index 4be442459a588..214f8df3f89a5 100644 --- a/src/pybind/mgr/crash/module.py +++ b/src/pybind/mgr/crash/module.py @@ -109,6 +109,7 @@ class Module(MgrModule): for f in ['crash_id', 'timestamp']: if f not in metadata: raise AttributeError("missing '%s' field" % (f)) + time = time_from_string(metadata['timestamp']) return metadata @staticmethod -- 2.39.5