From 4d35d8bd31ffcba41e41351065233cdfd83d0599 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 3 Jul 2015 18:59:49 -0400 Subject: [PATCH] properly booleanify copy field --- lib/ansible/plugins/action/unarchive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/unarchive.py b/lib/ansible/plugins/action/unarchive.py index e5b143e5976..fca31e6b93d 100644 --- a/lib/ansible/plugins/action/unarchive.py +++ b/lib/ansible/plugins/action/unarchive.py @@ -22,6 +22,7 @@ import os import pipes from ansible.plugins.action import ActionBase +from ansible.utils.boolean import boolean class ActionModule(ActionBase): @@ -33,7 +34,7 @@ class ActionModule(ActionBase): source = self._task.args.get('src', None) dest = self._task.args.get('dest', None) - copy = self._task.args.get('copy', True) + copy = boolean(self._task.args.get('copy', True)) creates = self._task.args.get('creates', None) if source is None or dest is None: