mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
456 B
Bash
19 lines
456 B
Bash
8 years ago
|
#!/bin/sh
|
||
|
|
||
|
ITERKEYS_USERS=$(grep -r -I iterkeys . \
|
||
|
--exclude-dir .git \
|
||
|
--exclude-dir .tox \
|
||
|
--exclude-dir docsite \
|
||
|
| grep -v \
|
||
|
-e lib/ansible/compat/six/_six.py \
|
||
|
-e lib/ansible/module_utils/six.py \
|
||
|
-e test/sanity/code-smell/no-iterkeys.sh \
|
||
|
-e '^[^:]*:#'
|
||
|
)
|
||
|
|
||
|
if [ "${ITERKEYS_USERS}" ]; then
|
||
|
echo 'iterkeys has been removed in python3. Use "for KEY in DICT:" instead'
|
||
|
echo "${ITERKEYS_USERS}"
|
||
|
exit 1
|
||
|
fi
|