Commit 06d38ab2 authored by Bruno Boiget's avatar Bruno Boiget

api/v1 : send message description for messages with no parameters

parent 4a59ba60
Pipeline #430 passed with stage
in 0 seconds
......@@ -145,15 +145,11 @@ def _get_root_option(optiondescriptions):
properties=frozenset(['mandatory', 'positional']))]
for name, options_descr in optiondescriptions.items():
description, options = options_descr
if len(options) != 1:
requires = [{'option': options_obj[0],
'expected': name,
'action': 'disabled',
'inverse': True}]
properties = None
else:
requires = None
properties = frozenset(['disabled'])
requires = [{'option': options_obj[0],
'expected': name,
'action': 'disabled',
'inverse': True}]
properties = None
options_obj.append(OptionDescription(name.replace('.', '_'),
description,
options,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment