Improve language.

This commit is contained in:
Felix Fontein 2024-12-28 14:27:15 +01:00
parent 995ab18e7b
commit 77de6d90bf
2 changed files with 2 additions and 2 deletions

View file

@ -5158,7 +5158,7 @@ PATHS = {
'protocol': KeyInfo(default='all'), 'protocol': KeyInfo(default='all'),
'src-address': KeyInfo(), 'src-address': KeyInfo(),
'src-port': KeyInfo(default='any'), 'src-port': KeyInfo(default='any'),
# The template field can't really be changed once the item is # The template field ca not really be changed once the item is
# created. This config captures the behavior best as it can # created. This config captures the behavior best as it can
# i.e. template=yes is shown, template=no is hidden. # i.e. template=yes is shown, template=no is hidden.
'template': KeyInfo(can_disable=True, remove_value=False), 'template': KeyInfo(can_disable=True, remove_value=False),

View file

@ -77,7 +77,7 @@ def _ros_api_connect(module, username, password, host, port, use_tls, force_no_c
elif not validate_cert_hostname: elif not validate_cert_hostname:
ctx.check_hostname = False ctx.check_hostname = False
else: else:
# Since librouteros doesn't pass server_hostname, # Since librouteros does not pass server_hostname,
# we have to do this ourselves: # we have to do this ourselves:
def wrap_context(*args, **kwargs): def wrap_context(*args, **kwargs):
kwargs.pop('server_hostname', None) kwargs.pop('server_hostname', None)