summaryrefslogtreecommitdiff
path: root/test/sanity/code-smell/use-compat-six.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/sanity/code-smell/use-compat-six.sh')
-rwxr-xr-xtest/sanity/code-smell/use-compat-six.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sanity/code-smell/use-compat-six.sh b/test/sanity/code-smell/use-compat-six.sh
index c77ad7c7ec..d81b8f4ca4 100755
--- a/test/sanity/code-smell/use-compat-six.sh
+++ b/test/sanity/code-smell/use-compat-six.sh
@@ -10,8 +10,8 @@ WHITELIST='(lib/ansible/modules/cloud/digital_ocean/digital_ocean.py)'
SIX_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -wH six '{}' '+' \
| grep import \
- | grep -v ansible.compat \
| grep -v ansible.module_utils.six \
+ | grep -v 'ansible.module_utils import six' \
| egrep -v "^$WHITELIST:"
)