mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
"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> |
||
|---|---|---|
| .. | ||
| nm | ||
| __init__.py | ||
| argument_validator.py | ||
| ethtool.py | ||
| myerror.py | ||
| nm_provider.py | ||
| utils.py | ||