Use the proper type for 'dest' argument

This commit is contained in:
Michael Scherer 2016-05-14 12:08:39 +02:00
parent 298fd0ae56
commit 514da9550b

View file

@ -211,7 +211,7 @@ def main():
module = AnsibleModule(
argument_spec = dict(
repo = dict(required=True, aliases=['name']),
dest = dict(required=True),
dest = dict(required=True, type='path'),
revision = dict(default=None, aliases=['version']),
force = dict(default='no', type='bool'),
purge = dict(default='no', type='bool'),
@ -220,7 +220,7 @@ def main():
),
)
repo = module.params['repo']
dest = os.path.expanduser(module.params['dest'])
dest = module.params['dest']
revision = module.params['revision']
force = module.params['force']
purge = module.params['purge']