summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2024-01-09 22:44:16 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2024-01-10 00:42:22 +0100
commit39bf15289ca10ff5b61eb4070292ffb13f53e94e (patch)
tree46a8adca0a3eb5af6d251a54556a5c2bf92e10f5 /python/vyos
parent0cd74e0795eaa9d71c9546cb6a4766661ffb6026 (diff)
downloadvyos-1x-39bf15289ca10ff5b61eb4070292ffb13f53e94e.tar.gz
vyos-1x-39bf15289ca10ff5b61eb4070292ffb13f53e94e.zip
dhcp: T3316: Workaround to append domain suffix to hostfile entries
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/kea.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/kea.py b/python/vyos/kea.py
index 2ca73044b..3d8cf3637 100644
--- a/python/vyos/kea.py
+++ b/python/vyos/kea.py
@@ -25,7 +25,7 @@ from vyos.template import netmask_from_cidr
from vyos.utils.dict import dict_search_args
from vyos.utils.file import file_permissions
from vyos.utils.file import read_file
-from vyos.utils.process import cmd
+from vyos.utils.process import run
kea4_options = {
'name_server': 'domain-name-servers',
@@ -315,7 +315,7 @@ def _ctrl_socket_command(path, command, args=None):
return None
if file_permissions(path) != '0775':
- cmd(f'sudo chmod 775 {path}')
+ run(f'sudo chmod 775 {path}')
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as sock:
sock.connect(path)