]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: OpSmException.error -> OpSmException.errno
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:22:57 +0000 (08:22 -0700)
committerRamana Raja <rraja@redhat.com>
Thu, 19 Mar 2020 12:57:32 +0000 (18:27 +0530)
commit97bea5d68cfbc69351d8552e00e0c07b3fbf7b92
tree9ca0cf96cc8f31ededa43d7047b53acd5edacc51
parent4552b7a9afd9a5b6cffdd8506b42a5dfdf03d531
mgr/volumes: OpSmException.error -> OpSmException.errno

fixes mypy errors:

volumes/fs/async_cloner.py: note: In function "handle_clone_pending":
volumes/fs/async_cloner.py:71: error: "OpSmException" has no attribute "error"; maybe "errno"?

volumes/fs/async_cloner.py: note: In function "handle_clone_in_progress":
volumes/fs/async_cloner.py:139: error: "OpSmException" has no attribute "error"; maybe "errno"?

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 7fa4da445650fd4a9f799c48ba513cb6f1a0d26c)
src/pybind/mgr/volumes/fs/async_cloner.py