]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: reverse params passed to `isinstace()`
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:18:43 +0000 (08:18 -0700)
committerMichael Fritch <mfritch@suse.com>
Thu, 5 Mar 2020 20:19:32 +0000 (13:19 -0700)
commit896448324f35bb1c307baff46e67a05d5d23e83b
tree72d2c75a9a88390559c46e076ed0909e95e1a4a0
parente2516a480679090a27de3401410d4f9a85cae8d2
mgr/volumes: reverse params passed to `isinstace()`

fixes mypy error:

volumes/fs/operations/clone_index.py: note: In member "track" of class "CloneIndex":
volumes/fs/operations/clone_index.py:38: error: Argument 2 to "isinstance" has incompatible type "Union[VolumeException, Any]"; expected "Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]"

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