network/module_utils/network_lsr
Thomas Haller a262c77c26 arg_validator: expect ArgValidatorDeprecated.deprecated_by setting to be valid
"validator.deprecated_by" is user configuration of the validator. It depends on the
setup of the current ArgValidatorDict instance. It would be a bug if the user
references a non-existing validator.

Thus, use dictionary lookup instead of get() and fail early.

The previous code of course also didn't work, because the
returned None value would have led to an exception shortly after.

Signed-off-by: Thomas Haller <thaller@redhat.com>
2021-08-26 16:30:09 +08:00
..
nm fix most ansible-test issues, suppress the rest 2021-04-09 19:57:55 +02:00
__init__.py fix most ansible-test issues, suppress the rest 2021-04-09 19:57:55 +02:00
argument_validator.py arg_validator: expect ArgValidatorDeprecated.deprecated_by setting to be valid 2021-08-26 16:30:09 +08:00
ethtool.py fix most ansible-test issues, suppress the rest 2021-04-09 19:57:55 +02:00
myerror.py fix most ansible-test issues, suppress the rest 2021-04-09 19:57:55 +02:00
nm_provider.py Add support for ETHTOOL Ring option 2021-05-11 18:19:16 +02:00
utils.py fix python black issues 2021-05-03 18:41:05 +02:00