5a3493be5f
* Port urls.py to python3 Fixes (largely normalizing byte vs text strings) for python3 * Rework what we do with attributes that aren't set already. * Comments
12 lines
300 B
Bash
Executable file
12 lines
300 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Do we want to check dynamic inventory, bin, etc?
|
|
BASEDIR=${1-"lib"}
|
|
|
|
SIX_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -wH six \{\} \;|grep import |grep -v ansible.compat| grep -v ansible.module_utils.six)
|
|
if test -n "$SIX_USERS" ; then
|
|
printf "$SIX_USERS"
|
|
exit 1
|
|
else
|
|
exit 0
|
|
fi
|