issue #477: add all() polyfill to custom_python_detect_environmnet

This commit is contained in:
David Wilson 2019-01-23 12:44:08 +00:00
parent 87d2af4c6e
commit 462a8567e5
1 changed files with 11 additions and 0 deletions

View File

@ -12,6 +12,17 @@ import socket
import sys
try:
all
except NameError:
# Python 2.4
def all(it):
for elem in it:
if not elem:
return False
return True
def main():
module = AnsibleModule(argument_spec={})
module.exit_json(