From e0684c0c343835c7674a94424d847592511915b0 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 9 Jul 2026 22:21:52 +0200 Subject: utils: T9008: migrate remaining cmd() callers to cmdl() and remove cmd() Complete the safer-subprocess migration started by the cmdl()/ifconfig refactoring and convert every remaining vyos.utils.process.cmd() call site to the list-based cmdl(). Drop the vyos.utils.process.cmd() implementation as it is no longer in use. --- src/migration-scripts/system/13-to-14 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/migration-scripts/system') diff --git a/src/migration-scripts/system/13-to-14 b/src/migration-scripts/system/13-to-14 index 3632b4b6a..0a0d4ef67 100644 --- a/src/migration-scripts/system/13-to-14 +++ b/src/migration-scripts/system/13-to-14 @@ -24,7 +24,7 @@ import re from vyos.configtree import ConfigTree -from vyos.utils.process import cmd +from vyos.utils.process import cmdl tz_base = ['system', 'time-zone'] @@ -38,7 +38,7 @@ def migrate(config: ConfigTree) -> None: # retrieve all valid timezones try: - tz_data_raw = cmd('timedatectl list-timezones') + tz_data_raw = cmdl(['timedatectl', 'list-timezones']) except OSError: tz_data_raw = '' tz_data = tz_data_raw.split('\n') -- cgit v1.2.3