From 8873c3675b11cb172ec33082b07a8d194dcac07a Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 3 Dec 2013 15:34:43 -0600 Subject: [PATCH] Ensure we are looking for the right import to determine if the module_style is new. Fixes #5148 --- lib/ansible/module_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py index a3588e2e0bd..3133ab26ba8 100644 --- a/lib/ansible/module_common.py +++ b/lib/ansible/module_common.py @@ -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'