summaryrefslogtreecommitdiff
path: root/src/op_mode/powerctrl.py
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-06 05:15:31 +0000
commit8b0670178c9c7fa7b11774b2b0ddefe82a0fd49c (patch)
tree429295115bcd0c2ccaa042ac24602663cf3339c5 /src/op_mode/powerctrl.py
parent97da30abc311323595db45f465fd8b278e1645c6 (diff)
downloadvyos-1x-8b0670178c9c7fa7b11774b2b0ddefe82a0fd49c.tar.gz
vyos-1x-8b0670178c9c7fa7b11774b2b0ddefe82a0fd49c.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/op_mode/powerctrl.py')
-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