]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/snap_schedule: datetime.fromisoformat fallbacks
authorJan Fajerski <jfajerski@suse.com>
Mon, 10 Aug 2020 12:26:21 +0000 (14:26 +0200)
committerJan Fajerski <jfajerski@suse.com>
Thu, 27 Aug 2020 13:55:46 +0000 (15:55 +0200)
commit4d29eaea94dfc63fe36581bd78ae281f3a138683
treef8dee5d31950b13b7745eaa21aadf32df48baecf
parented61ed9bbc9a9dd2eb12ded5d48ac9910001b162
pybind/mgr/snap_schedule: datetime.fromisoformat fallbacks

fromisoformat was introduced in pytho3.7. This can be worked around by
either installing
https://github.com/movermeyer/backports.datetime_fromisoformat. If a
pre3.7 python is found and the backport module is not installed,
snap_schedule falls back to parsing a fully specified timestamp
format. This commit adds the necessary code.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/pybind/mgr/snap_schedule/fs/schedule.py