Unverified Commit ceb14c16 authored by Matthew Jones's avatar Matthew Jones Committed by GitHub

Merge pull request #501 from AlanCoding/enforce_interal

Restore behavior of not showing internal resources in list
parents e82800b4 4509640b
......@@ -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