Use type='path' for dest (#2175)

This commit is contained in:
Michael Scherer 2016-05-06 16:48:41 +02:00 committed by Matt Clay
parent 5998d3113e
commit 775872cca6

View file

@ -143,7 +143,7 @@ class Bzr(object):
def main(): def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec = dict( argument_spec = dict(
dest=dict(required=True), dest=dict(required=True, type='path'),
name=dict(required=True, aliases=['parent']), name=dict(required=True, aliases=['parent']),
version=dict(default='head'), version=dict(default='head'),
force=dict(default='no', type='bool'), force=dict(default='no', type='bool'),
@ -151,7 +151,7 @@ def main():
) )
) )
dest = os.path.abspath(os.path.expanduser(module.params['dest'])) dest = module.params['dest']
parent = module.params['name'] parent = module.params['name']
version = module.params['version'] version = module.params['version']
force = module.params['force'] force = module.params['force']