zuul-jobs/test-playbooks/ansible-lint-rules/ansible-lint.yaml
Albin Vass aeca4e34e3 Fix ansible-lint rules tests
ansible-lint does not work when given an empty (/dev/null) config file.

Traceback (most recent call last):
  File "/tmp/ansible.td6htcac/bin/ansible-lint", line 8, in <module>
    sys.exit(main())
  File "/tmp/ansible.td6htcac/lib/python3.6/site-packages/ansiblelint/__main__.py", line 42, in main
    options = cli.get_config(sys.argv[1:])
  File "/tmp/ansible.td6htcac/lib/python3.6/site-packages/ansiblelint/cli.py", line 208, in get_config
    config = load_config(options.config_file)
  File "/tmp/ansible.td6htcac/lib/python3.6/site-packages/ansiblelint/cli.py", line 77, in load_config
    expand_to_normalized_paths(config, config_dir)
  File "/tmp/ansible.td6htcac/lib/python3.6/site-packages/ansiblelint/cli.py", line 40, in expand_to_normalized_paths
    if paths_var not in config:
TypeError: argument of type 'NoneType' is not iterable

Change-Id: Id2a883676c9fbb3a2c704c8cbd8f3cbc28cdc5fb
2020-06-18 00:12:55 +02:00

6 lines
70 B
YAML

parseable: true
quiet: false
rulesdir:
- ../../.rules/
verbosity: 1