summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-05 09:01:49 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-07-05 22:37:23 +0000
commitbf69ec7974a5cdec5d30a144cea8ba426215b232 (patch)
tree7d03527380f24c4dd0bbc04266ff54fd7f50855d /src
parentcad5f3d7a898ceabd7b414b668e95c7b14d87095 (diff)
downloadvyos-1x-bf69ec7974a5cdec5d30a144cea8ba426215b232.tar.gz
vyos-1x-bf69ec7974a5cdec5d30a144cea8ba426215b232.zip
op-mode: T6537: remove unused cmd imported from vyos.utils.process
Commit dc60fe99350 ("op-mode: T6537: include hostname in the reboot/shutdown warning message") added a more local import of vyos.utils.process.cmd() that made the fglobal import obsolete and trigger a linter warning. $ make unused-imports -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) (cherry picked from commit 6b2e45c073eeef62bbb5905e1bff98e20199b6b0)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/powerctrl.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/op_mode/powerctrl.py b/src/op_mode/powerctrl.py
index fb6b54776..c32a2be7d 100755
--- a/src/op_mode/powerctrl.py
+++ b/src/op_mode/powerctrl.py
@@ -24,7 +24,6 @@ from time import time
from vyos.utils.io import ask_yes_no
from vyos.utils.process import call
-from vyos.utils.process import cmd
from vyos.utils.process import run
from vyos.utils.process import STDOUT