]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/volumes: add `Dict` type
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:15:43 +0000 (08:15 -0700)
committerMichael Fritch <mfritch@suse.com>
Thu, 5 Mar 2020 20:19:31 +0000 (13:19 -0700)
commit322019beef0098f44621ce377bc988ac250a472f
tree2db0db1fbddb83327338f328e7411a75e4bdd48a
parent8478b72dc3706190993bc2dcf29667805b791e26
mgr/volumes: add `Dict` type

fixes mypy errors:

volumes/fs/operations/op_sm.py:39: error: "object" has no attribute "get"
volumes/fs/operations/op_sm.py:49: error: "object" has no attribute "get"

volumes/fs/operations/lock.py: note: In member "__init__" of class "GlobalLock":
volumes/fs/operations/lock.py:27: error: "object" has no attribute "__enter__"
volumes/fs/operations/lock.py:27: error: "object" has no attribute "__exit__"

volumes/fs/operations/lock.py: note: In member "lock_op" of class "GlobalLock":
volumes/fs/operations/lock.py:35: error: "object" has no attribute "__enter__"
volumes/fs/operations/lock.py:35: error: "object" has no attribute "__exit__"

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