summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-05-19 21:13:40 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-05-19 21:13:40 +0100
commit43dd945c5a45c86c491892f30546d0179751bf4a (patch)
tree9e30f8270347717726dc137b61b5034d90f05072 /python
parent3458a8b50853ecd032ebc3ee87f00452ac73ebcd (diff)
downloadvyos-1x-43dd945c5a45c86c491892f30546d0179751bf4a.tar.gz
vyos-1x-43dd945c5a45c86c491892f30546d0179751bf4a.zip
util: T2467: add systemctl to autosudo
Diffstat (limited to 'python')
-rw-r--r--python/vyos/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py
index 26352f93c..c2479aac4 100644
--- a/python/vyos/util.py
+++ b/python/vyos/util.py
@@ -23,7 +23,7 @@ import sys
def _need_sudo(command):
- return os.path.basename(command.split()[0]) in ('', )
+ return os.path.basename(command.split()[0]) in ('systemctl', )
def _add_sudo(command):