community.general/lib/ansible
cclauss 14bc625c2c Catch the raised exception so we can report failure (#42177)
[AWS iam_policy] Avoid the _undefined name_ by catching the raised exception into the variable __e__ so it can be reported on the following line.

flake8 testing of https://github.com/ansible/ansible on Python 3.6.3

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./lib/ansible/modules/cloud/amazon/iam_policy.py:305:16: F821 undefined name 'e'
            if e.errno == 2:
               ^
./lib/ansible/modules/cloud/misc/rhevm.py:594:24: F821 undefined name 'e'
            setMsg(str(e))
                       ^
./lib/ansible/modules/files/archive.py:391:92: F821 undefined name 'e'
                module.fail_json(dest=dest, msg='Error deleting some source files: ' + str(e), files=errors)
                                                                                           ^
3    F821 undefined name 'e'
3
```
2018-07-02 08:45:36 -04:00
..
cli avoid loading vars on unspecified basedir (cwd) (#42067) 2018-06-29 16:45:38 -07:00
compat
config ignore ansible.cfg in world writable cwd (#42070) 2018-06-29 16:46:10 -07:00
errors
executor fix minor issues with debug and item labels (#41331) 2018-06-21 16:14:57 -04:00
galaxy Update APB templates (#41559) 2018-06-14 17:05:30 -04:00
inventory Fix setting required options for inventory plugins (#42049) 2018-06-29 11:48:35 -04:00
module_utils Meraki module utility request() has improved error reporting (#39838) 2018-07-02 10:42:50 +02:00
modules Catch the raised exception so we can report failure (#42177) 2018-07-02 08:45:36 -04:00
parsing change OS X to macOS (#41294) 2018-06-26 14:09:23 -04:00
playbook Fix NameError, value was not available in this context leading to a generic unexpected error. Fixes #33275 (#41856) 2018-06-25 15:04:32 -05:00
plugins Base connection class for network-style connections (#41839) 2018-07-02 08:41:00 -04:00
template When using ANSIBLE_JINJA2_NATIVE bypass our None filtering in _finalze (#41408) 2018-06-12 08:46:23 -05:00
utils update module arguments to allow resource_definition to be a string (#40730) 2018-06-29 09:21:47 -05:00
vars avoid loading vars on unspecified basedir (cwd) (#42067) 2018-06-29 16:45:38 -07:00
__init__.py
constants.py ignore ansible.cfg in world writable cwd (#42070) 2018-06-29 16:46:10 -07:00
release.py update 2.7 codename 2018-05-31 15:46:07 -07:00