From 390dbe509024844922765db0421afd9cbf28bc1a Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 29 Feb 2016 00:33:34 -0800 Subject: [PATCH] Change one param to be of type path --- lib/ansible/modules/files/stat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/files/stat.py b/lib/ansible/modules/files/stat.py index 15ad8b138b..f14717ca10 100644 --- a/lib/ansible/modules/files/stat.py +++ b/lib/ansible/modules/files/stat.py @@ -305,7 +305,7 @@ import grp def main(): module = AnsibleModule( argument_spec = dict( - path = dict(required=True), + path = dict(required=True, type='path'), follow = dict(default='no', type='bool'), get_md5 = dict(default='yes', type='bool'), get_checksum = dict(default='yes', type='bool'), @@ -316,7 +316,6 @@ def main(): ) path = module.params.get('path') - path = os.path.expanduser(path) follow = module.params.get('follow') get_md5 = module.params.get('get_md5') get_checksum = module.params.get('get_checksum')