issue #477: add all() polyfill to custom_python_detect_environmnet
This commit is contained in:
parent
87d2af4c6e
commit
462a8567e5
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue