]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/ceph: tolerate 'T' or ' ' as date and time separator
authorSage Weil <sage@redhat.com>
Mon, 29 Apr 2019 14:07:58 +0000 (09:07 -0500)
committerSage Weil <sage@redhat.com>
Wed, 29 May 2019 19:12:15 +0000 (14:12 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph.py

index 7f0976536959d107a81e5b2f7649e8535b6c169d..0cc38df613b5cadb29d529d5e1a7ca4c57654e2a 100644 (file)
@@ -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: