]> 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)
committerRamana Raja <rraja@redhat.com>
Thu, 19 Mar 2020 12:57:32 +0000 (18:27 +0530)
commit157a028a81f2387b265dd81c2b7672504cb1bc17
tree905134a07386de74ba48db50e2fa890476867fab
parent3375318d3b56e0f8bd30a21f0b1d9acac17cf4ce
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>
(cherry picked from commit aaed49a142722089f8a24ceb8b846b7c1c51d5f6)
src/pybind/mgr/volumes/fs/async_job.py
src/pybind/mgr/volumes/fs/volume.py