From 514da9550b548a5884470dd05f567f04497dc7f7 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 14 May 2016 12:08:39 +0200 Subject: [PATCH] Use the proper type for 'dest' argument --- source_control/hg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source_control/hg.py b/source_control/hg.py index 2428effee9f..827a12d7765 100644 --- a/source_control/hg.py +++ b/source_control/hg.py @@ -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']