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/conf_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/conf_mode')
| -rwxr-xr-x | src/conf_mode/system_host-name.py | 6 |
1 files changed, 3 insertions, 3 deletions
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}') |
