diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-06-29 15:58:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-29 15:58:23 +0100 |
| commit | 772ccb06548fb1a65d8623ea545facb0bcabb97c (patch) | |
| tree | 1b0c279456eeae262fa5815cff7045523bc4c166 /src/op_mode | |
| parent | 4a888ac808c29323d3adb3862d908e7cb2bfc592 (diff) | |
| parent | 094928ba02bbabf3807ebe8f5ae77b957435d288 (diff) | |
| download | vyos-1x-772ccb06548fb1a65d8623ea545facb0bcabb97c.tar.gz vyos-1x-772ccb06548fb1a65d8623ea545facb0bcabb97c.zip | |
Merge pull request #5298 from vyos/ci/T8490-typos-vyos-1x
ci: T8490: fix typos in comments, strings, and local identifiers
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( |
