From 631ac856159539d3d57f6b4c907d65a09ef3f818 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 30 Apr 2019 09:15:39 -0500 Subject: [PATCH] mgr/ssh: parse new datetime Signed-off-by: Sage Weil --- src/pybind/mgr/ssh/module.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pybind/mgr/ssh/module.py b/src/pybind/mgr/ssh/module.py index b6ebad6e5ed7a..1fef4c8b1fd8d 100644 --- a/src/pybind/mgr/ssh/module.py +++ b/src/pybind/mgr/ssh/module.py @@ -18,7 +18,7 @@ except ImportError as e: remoto = None remoto_import_error = str(e) -DATEFMT = '%Y-%m-%d %H:%M:%S.%f' +DATEFMT = '%Y-%m-%dT%H:%M:%S.%f%z' # high-level TODO: # - bring over some of the protections from ceph-deploy that guard against @@ -183,8 +183,6 @@ class SSHOrchestrator(MgrModule, orchestrator.Orchestrator): @staticmethod def time_from_string(timestr): - # drop the 'Z' timezone indication, it's always UTC - timestr = timestr.rstrip('Z') return datetime.datetime.strptime(timestr, DATEFMT) def _get_cluster_fsid(self): -- 2.39.5