From 775872cca6a0a4c44c53c636517cfd7bbe23878e Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 6 May 2016 16:48:41 +0200 Subject: [PATCH] Use type='path' for dest (#2175) --- lib/ansible/modules/extras/source_control/bzr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/source_control/bzr.py b/lib/ansible/modules/extras/source_control/bzr.py index 0fc6ac28584..e6cfe9f1ea8 100644 --- a/lib/ansible/modules/extras/source_control/bzr.py +++ b/lib/ansible/modules/extras/source_control/bzr.py @@ -143,7 +143,7 @@ class Bzr(object): def main(): module = AnsibleModule( argument_spec = dict( - dest=dict(required=True), + dest=dict(required=True, type='path'), name=dict(required=True, aliases=['parent']), version=dict(default='head'), 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'] version = module.params['version'] force = module.params['force']