Ensure we are looking for the right import to determine if the module_style is new. Fixes #5148

This commit is contained in:
Matt Martz 2013-12-03 15:34:43 -06:00
parent 2670529671
commit 8873c3675b

View file

@ -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'