From 8478b72dc3706190993bc2dcf29667805b791e26 Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Tue, 3 Mar 2020 08:15:37 -0700 Subject: [PATCH] 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 --- src/pybind/mgr/volumes/fs/operations/index.py | 1 + src/pybind/mgr/volumes/fs/operations/op_sm.py | 2 ++ src/pybind/mgr/volumes/fs/operations/template.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/pybind/mgr/volumes/fs/operations/index.py b/src/pybind/mgr/volumes/fs/operations/index.py index 783564c067b35..3e11fd5870982 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 6650c1c5b3bd1..9915005a8f35a 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 846ea51eab491..362d62819e872 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): -- 2.39.5