2fff690caa
* Update module_utils.six to latest We've been held back on the version of six we could use on the module side to 1.4.x because of python-2.4 compatibility. Now that our minimum is Python-2.6, we can update to the latest version of six in module_utils and get rid of the second copy in lib/ansible/compat.
15 lines
427 B
Bash
Executable file
15 lines
427 B
Bash
Executable file
#!/bin/sh
|
|
|
|
urllib_users=$(find . -name '*.py' -exec grep -H urlopen '{}' '+' | grep -v \
|
|
-e '^[^:]*/.tox/' \
|
|
-e '^\./lib/ansible/module_utils/urls.py:' \
|
|
-e '^\./lib/ansible/module_utils/six/_six.py:' \
|
|
-e '^[^:]*:#'
|
|
)
|
|
|
|
if [ "${urllib_users}" ]; then
|
|
echo "${urllib_users}"
|
|
echo "One or more file(s) listed above use urlopen."
|
|
echo "Use open_url from module_utils instead of urlopen."
|
|
exit 1
|
|
fi
|