]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: fixup threading.Timer import
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:20:09 +0000 (08:20 -0700)
committerMichael Fritch <mfritch@suse.com>
Thu, 5 Mar 2020 20:19:33 +0000 (13:19 -0700)
commita611864dae86fcee9ea9cb9725aa26318396b55e
tree7ede893b6f1a902e06a40acdbf606696b4946dbf
parentf46b5059e635228f07dd5fe593f2d7454c3aa67b
mgr/volumes: fixup threading.Timer import

Python 3.3 changed `Timer` from a factory function to a class
https://docs.python.org/3.8/library/threading.html#timer-objects

fixes mypy error:

volumes/fs/operations/volume.py:9: error: Module 'threading' has no attribute '_Timer'; maybe "Timer"?

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/pybind/mgr/volumes/fs/operations/volume.py