1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible
cclauss 61d5454737 Catch the raised exception so we can report failure (#42072)
Avoid the _undefined name_ and mirror lines 389 and 459 by catching the raised exception in the variable __exc__ 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/module_utils/network/iosxr/iosxr.py:414:42: F821 undefined name 'exc'
            module.fail_json(msg=to_text(exc))
                                         ^
```
2018-07-02 09:36:10 +05:30
..
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 Catch the raised exception so we can report failure (#42072) 2018-07-02 09:36:10 +05:30
modules Minimizing information needed for second stage from first stage. (#42167) 2018-07-01 10:06:38 -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 Provide a fallback value for all options in 'default' callback plugin (#42155) 2018-06-30 21:31:30 -05: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