summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
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):