network/module_utils/network_lsr
Thomas Haller e0a1b6af68 arg_validator: make ArgValidatorDeprecated a subclass of ArgValidator
ArgValidatorDeprecated is used as a nested validator, it also should
subtype ArgValidator base class. Technially, in python you can do duck
typing and get away with a different class that merely behaves
sufficiently similar. But why?

That way, we also can set default_value=ArgValidator.MISSING.
As a result, we no longer need to special case ArgValidatorDeprecated
at various places, because the default value will indicate that
it should not be present.

Co-authored-by: Till Maas <opensource@till.name>

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: make ArgValidatorDeprecated a subclass of ArgValidator 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