diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-06-29 10:28:43 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-06-29 15:10:10 +0300 |
| commit | 094928ba02bbabf3807ebe8f5ae77b957435d288 (patch) | |
| tree | b435c65401c374221735a47f18fbee7be7ea4301 /src/op_mode | |
| parent | fe27e9cedb1bc7a91095a19d1867cfda428e12fe (diff) | |
| download | vyos-1x-094928ba02bbabf3807ebe8f5ae77b957435d288.tar.gz vyos-1x-094928ba02bbabf3807ebe8f5ae77b957435d288.zip | |
ci: T8490: fix typos in comments, strings, and local identifiers
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)
Diffstat (limited to 'src/op_mode')
| -rwxr-xr-x | src/op_mode/generate_tech-support_archive.py | 2 | ||||
| -rwxr-xr-x | src/op_mode/interfaces.py | 2 | ||||
| -rwxr-xr-x | src/op_mode/ipsec.py | 4 | ||||
| -rwxr-xr-x | src/op_mode/ping.py | 4 | ||||
| -rwxr-xr-x | src/op_mode/traceroute.py | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/op_mode/generate_tech-support_archive.py b/src/op_mode/generate_tech-support_archive.py index d005d78ee..d64993b61 100755 --- a/src/op_mode/generate_tech-support_archive.py +++ b/src/op_mode/generate_tech-support_archive.py @@ -99,7 +99,7 @@ def __generate_archived_files(location_path: str) -> None: return tarinfo - # Dictionary arhive_name:directory_to_arhive + # Dictionary archive_name:directory_to_archive archive_dict = { 'etc': '/etc', 'home': '/home', diff --git a/src/op_mode/interfaces.py b/src/op_mode/interfaces.py index ecc4e73d2..5c6f04476 100755 --- a/src/op_mode/interfaces.py +++ b/src/op_mode/interfaces.py @@ -96,7 +96,7 @@ def _split_text(text, used=0): take a string and attempt to split it to fit with the width of the screen text: the string to split - used: number of characted already used in the screen + used: number of character already used in the screen """ no_tty = call('tty -s') diff --git a/src/op_mode/ipsec.py b/src/op_mode/ipsec.py index 3061089ee..b878789a7 100755 --- a/src/op_mode/ipsec.py +++ b/src/op_mode/ipsec.py @@ -412,7 +412,7 @@ def _get_raw_connections_summary(list_conn, list_sas): return tun_dict -def _get_formatted_output_conections(data): +def _get_formatted_output_connections(data): from tabulate import tabulate connections = [] @@ -813,7 +813,7 @@ def show_connections(raw: bool): return _get_raw_data_connections(list_conns, list_sas) connections = _get_raw_data_connections(list_conns, list_sas) - return _get_formatted_output_conections(connections) + return _get_formatted_output_connections(connections) def show_connections_summary(raw: bool): diff --git a/src/op_mode/ping.py b/src/op_mode/ping.py index f52dfa7de..eda4f4af8 100755 --- a/src/op_mode/ping.py +++ b/src/op_mode/ping.py @@ -179,7 +179,7 @@ def completion_failure(option: str) -> None: sys.exit(1) -def expension_failure(option, completions): +def expansion_failure(option, completions): reason = 'Ambiguous' if completions else 'Invalid' sys.stderr.write( '\n\n {} command: {} [{}]\n\n'.format(reason, ' '.join(sys.argv), @@ -201,7 +201,7 @@ def convert(command, args): shortname = args.first() longnames = complete(shortname) if len(longnames) != 1: - expension_failure(shortname, longnames) + expansion_failure(shortname, longnames) longname = longnames[0] if options[longname]['type'] == 'noarg': command = options[longname]['ping'].format( diff --git a/src/op_mode/traceroute.py b/src/op_mode/traceroute.py index ef67b7416..720dd56ea 100755 --- a/src/op_mode/traceroute.py +++ b/src/op_mode/traceroute.py @@ -135,7 +135,7 @@ def completion_failure(option: str) -> None: sys.exit(1) -def expension_failure(option, completions): +def expansion_failure(option, completions): reason = 'Ambiguous' if completions else 'Invalid' sys.stderr.write( '\n\n {} command: {} [{}]\n\n'.format(reason, ' '.join(sys.argv), @@ -157,7 +157,7 @@ def convert(command, args): shortname = args.first() longnames = complete(shortname) if len(longnames) != 1: - expension_failure(shortname, longnames) + expansion_failure(shortname, longnames) longname = longnames[0] if options[longname]['type'] == 'noarg': command = options[longname]['traceroute'].format( |
