diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-04 07:25:11 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-04 07:25:11 +0100 |
commit | 54a932534e0c93611a5676680938c910a9bccb23 (patch) | |
tree | c081b6ef1d73dbe6172861e04c65ffe0ef00c3d1 /python/vyos/validate.py | |
parent | 09a2b2789c3914a6756bd3b487e51fa0737af8ca (diff) | |
download | vyos-1x-54a932534e0c93611a5676680938c910a9bccb23.tar.gz vyos-1x-54a932534e0c93611a5676680938c910a9bccb23.zip |
ifconfig: T2057: bugfix ValueError
Fixes error when creating bridge interfaces:
ValueError: <module 'time' (built-in)> must be a number
Diffstat (limited to 'python/vyos/validate.py')
-rw-r--r-- | python/vyos/validate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/validate.py b/python/vyos/validate.py index 4dca82dd8..48a18642b 100644 --- a/python/vyos/validate.py +++ b/python/vyos/validate.py @@ -187,7 +187,7 @@ def assert_list(s, l): def assert_number(n): - if not n.isnumeric(): + if not str(n).isnumeric(): raise ValueError(f'{n} must be a number') |