diff options
author | jctanner <tanner.jc@gmail.com> | 2016-11-09 13:46:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-09 13:46:18 -0500 |
commit | 2de97ac5bddad0e97b5beabdaadc6cd8a4bc6713 (patch) | |
tree | 41334d4a88b8ffe6a5226516d7dba6687607088c /utilities | |
parent | 45588171a85c4af70994b0bbc99dcc32ee344711 (diff) | |
download | ansible-modules-core-2de97ac5bddad0e97b5beabdaadc6cd8a4bc6713.tar.gz |
replace type() with isinstance() (#5541)
Replace all use of type() with isintance()
Addresses https://github.com/ansible/ansible/issues/18310
Diffstat (limited to 'utilities')
-rw-r--r-- | utilities/logic/async_wrapper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/logic/async_wrapper.py b/utilities/logic/async_wrapper.py index b2af4067..0d8c41ac 100644 --- a/utilities/logic/async_wrapper.py +++ b/utilities/logic/async_wrapper.py @@ -143,7 +143,7 @@ def _run_module(wrapped_cmd, jid, job_path): if json_warnings: # merge JSON junk warnings with any existing module warnings module_warnings = result.get('warnings', []) - if type(module_warnings) is not list: + if not isinstance(module_warnings, list): module_warnings = [module_warnings] module_warnings.extend(json_warnings) result['warnings'] = module_warnings |