]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/vstart_runner: avoid deprecation warning 57881/head
authorPatrick Donnelly <pdonnell@redhat.com>
Sat, 25 May 2024 18:31:44 +0000 (14:31 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 5 Jun 2024 12:41:22 +0000 (08:41 -0400)
commit7658896d9b20821f346be93890dddc02208beb6a
treedff6bbe3f95c1f5f30e0442fbe0f5afba0755aaf
parentc8f71d64951c8f60953caab3f431162c1f898c17
qa/tasks/vstart_runner: avoid deprecation warning

    /home/pdonnell/ceph/qa/tasks/vstart_runner.py:1280: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    time_elapsed = (datetime.datetime.utcnow() - started_at).total_seconds()

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/vstart_runner.py