diff options
author | Devaev Maxim <[email protected]> | 2020-09-09 07:13:34 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-09 07:13:34 +0300 |
commit | de6a66e08e9dbdb4f9896c0ed8f4b43435636df3 (patch) | |
tree | 12910f0e5f63ae209f0aa899fd76cf9e51e93ae5 /kvmd/validators | |
parent | 3dfdab787a9d28951501e73653bf33b0b3259ef8 (diff) |
valid_ugpio_driver() fix + tests
Diffstat (limited to 'kvmd/validators')
-rw-r--r-- | kvmd/validators/kvm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py index b06edf95..5a1fe1ae 100644 --- a/kvmd/validators/kvm.py +++ b/kvmd/validators/kvm.py @@ -107,7 +107,7 @@ def valid_ugpio_driver(arg: Any, variants: Optional[Set[str]]=None) -> str: name = "GPIO driver" arg = check_len(check_re_match(arg, name, r"^[a-zA-Z_][a-zA-Z0-9_-]*$"), name, 255) if variants is not None: - arg = check_string_in_list(arg, f"configured {name}", variants) + arg = check_string_in_list(arg, f"configured {name}", variants, False) return arg |