Apply validate_doc() to NO_CLI commands

This should prevent from NO_CLI commands have no translatable
description or have no one at all in Web UI API Browser.

Fixes: https://pagure.io/freeipa/issue/7592
Reviewed-By: Tibor Dudlak <tdudlak@redhat.com>
This commit is contained in:
Stanislav Levin
2018-06-20 13:28:03 +03:00
committed by Christian Heimes
parent 3a8f0bb16b
commit 32ed10caf9

View File

@@ -166,10 +166,6 @@ def validate_doc():
for cmd in api.Command():
cmd_class = cmd.__class__
# Skip commands marked as NO_CLI
if getattr(cmd, 'NO_CLI', False):
continue
# Have we processed this module yet?
topic = cmd.topic
while topic is not None: