]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: import errno
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:15:37 +0000 (08:15 -0700)
committerRamana Raja <rraja@redhat.com>
Wed, 18 Mar 2020 16:43:35 +0000 (22:13 +0530)
fixes mypy errors:

volumes/fs/operations/op_sm.py:36: error: Name 'errno' is not defined
volumes/fs/operations/op_sm.py:39: error: Name 'errno' is not defined
volumes/fs/operations/op_sm.py:46: error: Name 'errno' is not defined
volumes/fs/operations/op_sm.py:49: error: Name 'errno' is not defined
volumes/fs/operations/template.py:5: error: Name 'errno' is not defined
volumes/fs/operations/template.py:14: error: Name 'errno' is not defined
volumes/fs/operations/template.py:23: error: Name 'errno' is not defined
volumes/fs/operations/template.py:32: error: Name 'errno' is not defined
volumes/fs/operations/template.py:42: error: Name 'errno' is not defined
volumes/fs/operations/template.py:45: error: Name 'errno' is not defined
volumes/fs/operations/template.py:62: error: Name 'errno' is not defined
volumes/fs/operations/template.py:74: error: Name 'errno' is not defined
volumes/fs/operations/template.py:85: error: Name 'errno' is not defined
volumes/fs/operations/template.py:94: error: Name 'errno' is not defined
volumes/fs/operations/template.py:103: error: Name 'errno' is not defined
volumes/fs/operations/template.py:112: error: Name 'errno' is not defined
volumes/fs/operations/template.py:121: error: Name 'errno' is not defined
volumes/fs/operations/template.py:130: error: Name 'errno' is not defined
volumes/fs/operations/template.py:139: error: Name 'errno' is not defined
volumes/fs/operations/template.py:148: error: Name 'errno' is not defined
volumes/fs/operations/template.py:158: error: Name 'errno' is not defined
volumes/fs/operations/template.py:169: error: Name 'errno' is not defined
volumes/fs/operations/template.py:180: error: Name 'errno' is not defined
volumes/fs/operations/index.py:18: error: Name 'errno' is not defined
volumes/fs/operations/index.py:21: error: Name 'errno' is not defined

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 8478b72dc3706190993bc2dcf29667805b791e26)

src/pybind/mgr/volumes/fs/operations/index.py
src/pybind/mgr/volumes/fs/operations/op_sm.py
src/pybind/mgr/volumes/fs/operations/template.py

index 783564c067b3578784b1abdaa137660b2dff143d..3e11fd58709827cd75a1d8cbeaa601e8e2b95a25 100644 (file)
@@ -1,3 +1,4 @@
+import errno
 import os
 
 from .template import GroupTemplate
index 6650c1c5b3bd130b550e774227ce333ab1eac99a..9915005a8f35ae720e747a0386aeb642f4d1ae18 100644 (file)
@@ -1,3 +1,5 @@
+import errno
+
 from ..exception import OpSmException
 
 class OpSm(object):
index 846ea51eab4913bc63d6251f0622770c8f66baab..362d62819e872db2b87abca5eab106d297e75854 100644 (file)
@@ -1,3 +1,5 @@
+import errno
+
 from ..exception import VolumeException
 
 class GroupTemplate(object):