properly convert arg into boolean
This commit is contained in:
parent
5626efba7e
commit
4afcd50487
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class ActionModule(object):
|
||||||
options.update(utils.parse_kv(module_args))
|
options.update(utils.parse_kv(module_args))
|
||||||
source = options.get('src', None)
|
source = options.get('src', None)
|
||||||
dest = options.get('dest', 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:
|
if source is None or dest is None:
|
||||||
result=dict(failed=True, msg="src (or content) and dest are required")
|
result=dict(failed=True, msg="src (or content) and dest are required")
|
||||||
|
|
Loading…
Reference in a new issue