2015-10-16 19:31:35 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Do we want to check dynamic inventory, bin, etc?
|
|
|
|
BASEDIR=${1-"lib"}
|
|
|
|
|
2016-06-05 01:19:57 +02:00
|
|
|
SIX_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -wH six \{\} \;|grep import |grep -v ansible.compat| grep -v ansible.module_utils.six)
|
2015-10-16 19:31:35 +02:00
|
|
|
if test -n "$SIX_USERS" ; then
|
|
|
|
printf "$SIX_USERS"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
exit 0
|
|
|
|
fi
|