From f8cbfad5e6a80478fc87fb5e519f21778821aa36 Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Mon, 13 Feb 2017 11:58:20 -0800 Subject: [PATCH] Removes usage of expanduser due to type 'path' Removes the usage of the expanduser function because it is being performed automatically by the type 'path' of the path option. --- lib/ansible/modules/files/ini_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/ini_file.py b/lib/ansible/modules/files/ini_file.py index 303da2a5eb7..7ccad907369 100644 --- a/lib/ansible/modules/files/ini_file.py +++ b/lib/ansible/modules/files/ini_file.py @@ -288,7 +288,7 @@ def main(): supports_check_mode = True ) - path = os.path.expanduser(module.params['path']) + path = module.params['path'] section = module.params['section'] option = module.params['option'] value = module.params['value']