ansible / mazer

Experimental Ansible Galaxy Content Manager
GNU General Public License v3.0
114 stars 18 forks source link

Better default path filter for 'list --content' #214

Closed alikins closed 5 years ago

alikins commented 5 years ago
SUMMARY

The iterator used for 'list --content' was not filtering/ignore pycache dirs or stray init.py files inside of a collection, so the list output had bogus entries.

ISSUE TYPE
MAZER VERSION
name = mazer
version = 0.4.0
config_file = /home/adrian/.ansible/mazer.yml
uname = Linux, newswoop, 4.18.16-100.fc27.x86_64, #1 SMP Sun Oct 21 09:33:00 UTC 2018, x86_64
executable_location = /home/adrian/venvs/mazer040test/bin/mazer
python_version = 3.6.6 (default, Jul 19 2018, 16:29:00) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]
python_executable = /home/adrian/venvs/mazer040test/bin/python
ADDITIONAL INFORMATION

Example output of mazer list --content before

repo=alikins.collection_inspect, type=filter, name=__pycache__, version=0.0.20
repo=alikins.collection_inspect, type=filter, name=collection_inspect, version=0.0.20
repo=alikins.collection_inspect, type=__pycache__, name=__init__.cpython-36, version=0.0.20
repo=alikins.collection_inspect, type=module_utils, name=collection_inspect, version=0.0.20
repo=alikins.alikins-collection_reqs_test-2.1113, type=repository, version=2.1113.39

After:

repo=alikins.collection_inspect, type=filter, name=collection_inspect, version=0.0.20
repo=alikins.collection_inspect, type=module_utils, name=collection_inspect, version=0.0.20
repo=alikins.alikins-collection_reqs_test-2.1113, type=repository, version=2.1113.39
repo=alikins.alikins-collection_reqs_test-2.1113, type=roles, name=cole_role, version=2.1113.39
repo=alikins.alikins-collection_reqs_test-2.1113, type=roles, name=bole_role, version=2.1113.39
repo=alikins.alikins-collection_reqs_test-2.1113, type=roles, name=aole_role, version=2.1113.39
repo=alikins.alikins-collection_reqs_test-2.1113, type=modules, name=newmodule, version=2.1113.39