From b747ae1711db2b5dd69ee2294c57c36545bce31c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 29 Apr 2019 09:07:58 -0500 Subject: [PATCH] qa/tasks/ceph: tolerate 'T' or ' ' as date and time separator Signed-off-by: Sage Weil --- qa/tasks/ceph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 7f097653695..0cc38df613b 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -1291,7 +1291,9 @@ def osd_scrub_pgs(ctx, config): loop = False thiscnt = 0 for (pgid, tmval) in timez: - pgtm = time.strptime(tmval[0:tmval.find('.')], '%Y-%m-%d %H:%M:%S') + t = tmval[0:tmval.find('.')] + t.replace(' ', 'T') + pgtm = time.strptime(t, '%Y-%m-%dT%H:%M:%S') if pgtm > check_time_now: thiscnt += 1 else: -- 2.39.5