Commit 942ee4b3 by jctanner

Merge pull request #5151 from sivel/new-new-module-style

Fix new new module_style determination. Fixes #5148
parents 26705296 8873c367
...@@ -84,7 +84,7 @@ class ModuleReplacer(object): ...@@ -84,7 +84,7 @@ class ModuleReplacer(object):
module_style = 'old' module_style = 'old'
if REPLACER in module_data: if REPLACER in module_data:
module_style = 'new' module_style = 'new'
elif 'from ansible.snippets.' in module_data: elif 'from ansible.module_utils.' in module_data:
module_style = 'new' module_style = 'new'
elif 'WANT_JSON' in module_data: elif 'WANT_JSON' in module_data:
module_style = 'non_native_want_json' module_style = 'non_native_want_json'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment