From: Michael Fritch Date: Tue, 3 Mar 2020 15:15:37 +0000 (-0700) Subject: mgr/volumes: import errno X-Git-Tag: v15.1.1~93^2~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8478b72dc3706190993bc2dcf29667805b791e26;p=ceph.git mgr/volumes: import errno 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 --- diff --git a/src/pybind/mgr/volumes/fs/operations/index.py b/src/pybind/mgr/volumes/fs/operations/index.py index 783564c067b3..3e11fd587098 100644 --- a/src/pybind/mgr/volumes/fs/operations/index.py +++ b/src/pybind/mgr/volumes/fs/operations/index.py @@ -1,3 +1,4 @@ +import errno import os from .template import GroupTemplate diff --git a/src/pybind/mgr/volumes/fs/operations/op_sm.py b/src/pybind/mgr/volumes/fs/operations/op_sm.py index 6650c1c5b3bd..9915005a8f35 100644 --- a/src/pybind/mgr/volumes/fs/operations/op_sm.py +++ b/src/pybind/mgr/volumes/fs/operations/op_sm.py @@ -1,3 +1,5 @@ +import errno + from ..exception import OpSmException class OpSm(object): diff --git a/src/pybind/mgr/volumes/fs/operations/template.py b/src/pybind/mgr/volumes/fs/operations/template.py index 846ea51eab49..362d62819e87 100644 --- a/src/pybind/mgr/volumes/fs/operations/template.py +++ b/src/pybind/mgr/volumes/fs/operations/template.py @@ -1,3 +1,5 @@ +import errno + from ..exception import VolumeException class GroupTemplate(object):