Commit 13b8a57d by James Cammarata

Undo previous travis/tox fixes and fix underlying issue

parent 7c332b63
......@@ -7,8 +7,8 @@ addons:
apt:
sources:
- deadsnakes
#packages:
# - python2.4
packages:
- python2.4
install:
- pip install tox PyYAML Jinja2 sphinx
script:
......
......@@ -122,9 +122,9 @@ def connect_to_api(module, disconnect_atexit=True):
if disconnect_atexit:
atexit.register(connect.Disconnect, service_instance)
return service_instance.RetrieveContent()
except vim.fault.InvalidLogin as invalid_login:
except vim.fault.InvalidLogin, invalid_login:
module.fail_json(msg=invalid_login.msg, apierror=str(invalid_login))
except requests.ConnectionError as connection_error:
except requests.ConnectionError, connection_error:
module.fail_json(msg="Unable to connect to vCenter or ESXi API on TCP/443.", apierror=str(connection_error))
......
......@@ -9,12 +9,12 @@ whitelist_externals = make
[testenv:py26]
commands =
python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py' .
#python2.4 -m compileall -fq -x 'module_utils/(a10|rax|openstack|ec2|gce).py' lib/ansible/module_utils
python2.4 -m compileall -fq -x 'module_utils/(a10|rax|openstack|ec2|gce).py' lib/ansible/module_utils
make tests
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals =
make
#python2.4
python2.4
[testenv:py27]
commands =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment