From b67e4a19ab59bab627d1ed591cdf8bf8b4ba3c45 Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Sat, 23 May 2015 00:11:50 +0800 Subject: [PATCH] Use expanduser to deal with path in bower module So bower module can correctly handle path containing `~` --- lib/ansible/modules/extras/packaging/language/bower.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/packaging/language/bower.py b/lib/ansible/modules/extras/packaging/language/bower.py index f0dd58023ba..34284356f6e 100644 --- a/lib/ansible/modules/extras/packaging/language/bower.py +++ b/lib/ansible/modules/extras/packaging/language/bower.py @@ -154,7 +154,7 @@ def main(): name = module.params['name'] offline = module.params['offline'] - path = module.params['path'] + path = os.path.expanduser(module.params['path']) state = module.params['state'] version = module.params['version']