Upgrading to GitLab 12.1.0.

restore behavior of not showing internal resources in list

parent 7c3372e5
......@@ -84,7 +84,11 @@ class TowerCLI(click.MultiCommand):
answer = set([name for _, name, _ in pkgutil.iter_modules([resource_path])])
answer = set([])
for _, name, _ in pkgutil.iter_modules([resource_path]):
res = tower_cli.get_resource(name)
if not getattr(res, 'internal', False):
return sorted(answer)
def list_misc_commands(self):
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