mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
properly booleanify copy field
This commit is contained in:
parent
de98dc2968
commit
4d35d8bd31
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue