summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-07-15 19:51:22 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-07-15 21:34:10 -0500
commitf8797df83d9ce127346ee9f0fae43a031559c790 (patch)
tree118c7529433f81e09901e75204051a9f4719fa72 /python/vyos
parentea3cacea57592154a93da753e915a3d39761773d (diff)
downloadvyos-1x-f8797df83d9ce127346ee9f0fae43a031559c790.tar.gz
vyos-1x-f8797df83d9ce127346ee9f0fae43a031559c790.zip
T5195: add/fix missing imports
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/remote.py2
-rw-r--r--python/vyos/utils/kernel.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/python/vyos/remote.py b/python/vyos/remote.py
index ef8c23da4..16fe2b2c2 100644
--- a/python/vyos/remote.py
+++ b/python/vyos/remote.py
@@ -37,7 +37,7 @@ from vyos.utils.io import make_incremental_progressbar
from vyos.utils.io import make_progressbar
from vyos.utils.io import print_error
from vyos.utils.misc import begin
-from vyos.utils.process import cm
+from vyos.utils.process import cmd
from vyos.version import get_version
CHUNK_SIZE = 8192
diff --git a/python/vyos/utils/kernel.py b/python/vyos/utils/kernel.py
index d950b8e75..0eb113174 100644
--- a/python/vyos/utils/kernel.py
+++ b/python/vyos/utils/kernel.py
@@ -13,6 +13,8 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http://www.gnu.org/licenses/>.
+import os
+
def check_kmod(k_mod):
""" Common utility function to load required kernel modules on demand """
from vyos import ConfigError