From 4afcd504874c249e23a298a5fd2c75bb374b7b41 Mon Sep 17 00:00:00 2001 From: Paul Bonser Date: Tue, 3 Dec 2013 18:46:37 -0600 Subject: [PATCH] properly convert arg into boolean --- lib/ansible/runner/action_plugins/unarchive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/action_plugins/unarchive.py b/lib/ansible/runner/action_plugins/unarchive.py index 16f4a8e46f1..1ae9f916e9f 100644 --- a/lib/ansible/runner/action_plugins/unarchive.py +++ b/lib/ansible/runner/action_plugins/unarchive.py @@ -48,7 +48,7 @@ class ActionModule(object): options.update(utils.parse_kv(module_args)) source = options.get('src', None) dest = options.get('dest', None) - copy = options.get('copy', True) + copy = utils.boolean(options.get('copy', 'yes')) if source is None or dest is None: result=dict(failed=True, msg="src (or content) and dest are required")