Skip to content

Commit

Permalink
Fix exclude bug running outside git repos (#1570)
Browse files Browse the repository at this point in the history
Fixes: #1565
  • Loading branch information
ssbarnea committed May 21, 2021
1 parent e77fa10 commit 3479188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblelint/file_utils.py
Expand Up @@ -225,7 +225,7 @@ def discover_lintables(options: Namespace) -> Dict[str, Any]:
_logger.warning("Failed to locate command: %s", exc)

if out is None:
exclude_pattern = "|".join(options.exclude_paths)
exclude_pattern = "|".join(str(x) for x in options.exclude_paths)
_logger.info("Looking up for files, excluding %s ...", exclude_pattern)
out = WcMatch('.', exclude_pattern=exclude_pattern, flags=RECURSIVE).match()

Expand Down

0 comments on commit 3479188

Please sign in to comment.