Contribute to Ansible W7

February 14, 2017

Another old issue to manage a part of the mongodb ecosystem (authentication / roles).

However, this new module break the CI with the python 3.5 compat. Python 3.5 doesn’t support the comma syntax for the exception block and i can’t use the as keyword (python 2.4). :(

I am waiting an response from a core dev.

# the error
2016-12-26 17:47:26 Compile with Python 3.5
2016-12-26 17:47:26 Run command: python3.5 -m compileall -fq -x /.tox/ ./lib/ansible/modules/database/misc/mongodb_role.py
2016-12-26 17:47:32 *** Error compiling './lib/ansible/modules/database/misc/mongodb_role.py'...
2016-12-26 17:47:32   File "./lib/ansible/modules/database/misc/mongodb_role.py", line 239
2016-12-26 17:47:32     except OperationFailure, e:
2016-12-26 17:47:32                            ^
2016-12-26 17:47:32 SyntaxError: invalid syntax
2016-12-26 17:47:32 
2016-12-26 17:47:32 ERROR: Command "python3.5 -m compileall -fq -x /.tox/ ./lib/ansible/modules/database/misc/mongodb_role.py" returned exit status 1.
comments powered by Disqus