Skip to content
Snippets Groups Projects
Commit a55f2887 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

func-tests: fix configuration generation

parent e1efdb19
No related branches found
No related tags found
No related merge requests found
......@@ -735,6 +735,8 @@ class Knot(Server):
def _on_str_hex(self, conf, name, value):
if value == True:
conf.item(name, "on")
elif value == False:
conf.item(name, "off")
elif value:
if isinstance(value, int) or value[:2] == "0x":
conf.item(name, value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment