diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-05 09:01:49 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-07-05 09:02:57 +0200 |
commit | 6b2e45c073eeef62bbb5905e1bff98e20199b6b0 (patch) | |
tree | 88363dad453b4506609eb42208bea8984c98b47f | |
parent | 9cddfd9fde5504cd5e42ed75560f21619aca646b (diff) | |
download | vyos-1x-6b2e45c073eeef62bbb5905e1bff98e20199b6b0.tar.gz vyos-1x-6b2e45c073eeef62bbb5905e1bff98e20199b6b0.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)
-rwxr-xr-x | src/op_mode/powerctrl.py | 1 |
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 |