From 094928ba02bbabf3807ebe8f5ae77b957435d288 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Mon, 29 Jun 2026 10:28:43 +0300 Subject: ci: T8490: fix typos in comments, strings, and local identifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reaches a clean typos baseline for the T8490 ruleset pilot. Categories: - Comments/docs: recursivly, taret, passsed, characted, arhive, AtrributeError; "ned" -> "new" (migration comments). - Messages/strings: writeable -> writable (x5); OCaml log "Commandis" -> "Command is". - Local variables (all refs in-function): commited, formating, presistent; inpt_range -> input_range; tz_datas -> tz_data_raw (avoids the tz_data collision). - Self-contained renames (definition + all references in-file): formated_stats, _get_formatted_output_conections -> ..._connections, expension_failure -> expansion_failure (ping + traceroute), snmpd_restart_reqired -> ..._required. False positives are allowlisted centrally (vyos/.github, separate PR), NOT changed here: mke2fs, Maya-calendar "Mak", RFC 4122 "IDentifier" (hostapd), and VPP's "U-Forwrd" bridge-domain column header (op_mode/vpp.py + the VPP smoketest assert the real upstream `vppctl` output). Verified: typos clean, py_compile of every edited .py, zero remaining old-identifier references. 🤖 Generated by [robots](https://vyos.io) --- src/conf_mode/system_host-name.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/conf_mode') diff --git a/src/conf_mode/system_host-name.py b/src/conf_mode/system_host-name.py index 5a9265eba..2267508af 100755 --- a/src/conf_mode/system_host-name.py +++ b/src/conf_mode/system_host-name.py @@ -39,7 +39,7 @@ default_config_data = { 'domain_search': [], 'nameserver': [], 'nameservers_dhcp_interfaces': {}, - 'snmpd_restart_reqired': False, + 'snmpd_restart_required': False, 'static_host_mapping': {} } @@ -57,7 +57,7 @@ def get_config(config=None): base = ['system'] if leaf_node_changed(conf, base + ['host-name']) or leaf_node_changed(conf, base + ['domain-name']): - hosts['snmpd_restart_reqired'] = True + hosts['snmpd_restart_required'] = True # This may happen if the config is not loaded yet, # e.g. if run by cloud-init @@ -179,7 +179,7 @@ def apply(config): call(f'systemctl restart {tmp}') # If SNMP is running, restart it too - if process_named_running('snmpd') and config['snmpd_restart_reqired']: + if process_named_running('snmpd') and config['snmpd_restart_required']: tmp = systemd_services['snmpd'] call(f'systemctl restart {tmp}') -- cgit v1.2.3