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.
23 lines
592 B
Bash
23 lines
592 B
Bash
8 years ago
|
#!/bin/sh
|
||
|
|
||
|
ITERKEYS_USERS=$(grep -r -I iterkeys . \
|
||
|
--exclude-dir .git \
|
||
|
--exclude-dir .tox \
|
||
8 years ago
|
--exclude-dir .idea \
|
||
8 years ago
|
--exclude-dir docsite \
|
||
8 years ago
|
--exclude-dir results \
|
||
8 years ago
|
| grep -v \
|
||
7 years ago
|
-e 'metadata-.*.json:' \
|
||
|
-e lib/ansible.egg-info/ \
|
||
8 years ago
|
-e lib/ansible/module_utils/six/_six.py \
|
||
7 years ago
|
-e docs/docsite/rst/dev_guide/testing/sanity/ \
|
||
|
-e test/sanity/code-smell/no-dict-iterkeys.sh \
|
||
8 years ago
|
-e '^[^:]*:#'
|
||
|
)
|
||
|
|
||
|
if [ "${ITERKEYS_USERS}" ]; then
|
||
|
echo 'iterkeys has been removed in python3. Use "for KEY in DICT:" instead'
|
||
|
echo "${ITERKEYS_USERS}"
|
||
|
exit 1
|
||
|
fi
|