From: Sage Weil Date: Mon, 29 Apr 2019 14:07:58 +0000 (-0500) Subject: qa/tasks/ceph: tolerate 'T' or ' ' as date and time separator X-Git-Tag: v15.1.0~2616^2~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b747ae1711db2b5dd69ee2294c57c36545bce31c;p=ceph-ci.git qa/tasks/ceph: tolerate 'T' or ' ' as date and time separator Signed-off-by: Sage Weil --- 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: