Use the proper type for 'dest' argument
This commit is contained in:
parent
291e00d43a
commit
b788f45b49
1 changed files with 2 additions and 2 deletions
|
@ -211,7 +211,7 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
repo = dict(required=True, aliases=['name']),
|
repo = dict(required=True, aliases=['name']),
|
||||||
dest = dict(required=True),
|
dest = dict(required=True, type='path'),
|
||||||
revision = dict(default=None, aliases=['version']),
|
revision = dict(default=None, aliases=['version']),
|
||||||
force = dict(default='no', type='bool'),
|
force = dict(default='no', type='bool'),
|
||||||
purge = dict(default='no', type='bool'),
|
purge = dict(default='no', type='bool'),
|
||||||
|
@ -220,7 +220,7 @@ def main():
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
repo = module.params['repo']
|
repo = module.params['repo']
|
||||||
dest = os.path.expanduser(module.params['dest'])
|
dest = module.params['dest']
|
||||||
revision = module.params['revision']
|
revision = module.params['revision']
|
||||||
force = module.params['force']
|
force = module.params['force']
|
||||||
purge = module.params['purge']
|
purge = module.params['purge']
|
||||||
|
|
Loading…
Reference in a new issue