]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: `threading.Event.isSet` no longer exists in py3
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:18:11 +0000 (08:18 -0700)
committerMichael Fritch <mfritch@suse.com>
Thu, 5 Mar 2020 20:19:32 +0000 (13:19 -0700)
commitaaed49a142722089f8a24ceb8b846b7c1c51d5f6
tree715e2c0fde152262bd30e2e4a0928464d4c6ebdb
parent6907c440e1350e4088c0562bffcc08439633298f
mgr/volumes: `threading.Event.isSet` no longer exists in py3

fixes mypy errors:

volumes/fs/async_job.py: note: In member "should_cancel" of class "JobThread":
volumes/fs/async_job.py:70: error: "Event" has no attribute "isSet"

volumes/fs/volume.py: note: In member "is_stopping" of class "VolumeClient":
volumes/fs/volume.py:59: error: "Event" has no attribute "isSet"

volumes/fs/volume.py: note: In member "list_fs_volumes" of class "VolumeClient":
volumes/fs/volume.py:106: error: "Event" has no attribute "isSet"

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