Skip to content
Snippets Groups Projects
Commit 5094ac8c authored by Bruno Boiget's avatar Bruno Boiget
Browse files

fix type check on interactive input (integer)

parent bf5960bb
No related branches found
No related tags found
1 merge request!17fix type check on interactive input (integer)
Pipeline #376 passed
......@@ -25,7 +25,7 @@ config = cmdline_factory(remote_config)
for key in config.value.mandatory():
if not config.option(key).option.issymlinkoption():
text = input("* "+config.option(key).option.doc() + " : ")
if config.option(key).option.type() == 'int':
if config.option(key).option.type() == 'integer':
config.option(key).value.set(int(text))
else:
config.option(key).value.set(text)
......
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