mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 18:35:13 +00:00
In python, bool is a subclass of int. Thus, isinstance(value, self.numeric_type) would be True, with value being a bool and numeric_type an int. ArgValidatorNum should normalize the input values to be of type self.numeric_type, except the default_value, which might be None (or anything really). Signed-off-by: Wen Liang <liangwen12year@gmail.com> |
||
|---|---|---|
| .. | ||
| network_lsr | ||