mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #5151 from sivel/new-new-module-style
Fix new new module_style determination. Fixes #5148
This commit is contained in:
commit
942ee4b3d4
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class ModuleReplacer(object):
|
|||
module_style = 'old'
|
||||
if REPLACER in module_data:
|
||||
module_style = 'new'
|
||||
elif 'from ansible.snippets.' in module_data:
|
||||
elif 'from ansible.module_utils.' in module_data:
|
||||
module_style = 'new'
|
||||
elif 'WANT_JSON' in module_data:
|
||||
module_style = 'non_native_want_json'
|
||||
|
|
Loading…
Add table
Reference in a new issue