From 8457cf433df1fe40b05be583de0bffdf4948acc0 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 12 Apr 2013 10:00:20 -0400 Subject: [PATCH] Update pause module to not use utils.template --- lib/ansible/runner/action_plugins/pause.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ansible/runner/action_plugins/pause.py b/lib/ansible/runner/action_plugins/pause.py index 109f41bfce4..31648ae820d 100644 --- a/lib/ansible/runner/action_plugins/pause.py +++ b/lib/ansible/runner/action_plugins/pause.py @@ -18,7 +18,8 @@ from ansible.callbacks import vv from ansible.errors import AnsibleError as ae from ansible.runner.return_data import ReturnData -from ansible.utils import getch, template, parse_kv +from ansible.utils import getch, parse_kv +import ansible.utils.template as template from termios import tcflush, TCIFLUSH import datetime import sys @@ -56,7 +57,8 @@ class ActionModule(object): args = {} if complex_args: args.update(complex_args) - args.update(parse_kv(template(self.runner.basedir, module_args, inject))) + # extra template call unneeded? + args.update(parse_kv(template.template(self.runner.basedir, module_args, inject))) # Are 'minutes' or 'seconds' keys that exist in 'args'? if 'minutes' in args or 'seconds' in args: