diff options
author | James Tanner <tanner.jc@gmail.com> | 2013-12-20 09:55:53 -0500 |
---|---|---|
committer | James Tanner <tanner.jc@gmail.com> | 2013-12-20 13:19:01 -0500 |
commit | 241b294e264c6c5812e8b8ceb2d0701d39bf6b5a (patch) | |
tree | f05b21f2b492aaf1582f7e00615b4d0b36f5cba7 | |
parent | 66799995ac081d5ece1c0b3e28b20c928d58937f (diff) | |
download | ansible-241b294e264c6c5812e8b8ceb2d0701d39bf6b5a.tar.gz |
Addresses #5364 urllib quote role names
-rwxr-xr-x | bin/ansible-galaxy | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index 9cd8b57fe4..35687ebab9 100755 --- a/bin/ansible-galaxy +++ b/bin/ansible-galaxy @@ -29,6 +29,7 @@ import shutil import sys import tarfile import tempfile +import urllib import urllib2 import yaml @@ -201,6 +202,8 @@ def api_lookup_role_by_name(api_server, role_name): Uses the Galaxy API to do a lookup on the role owner/name. """ + role_name = urllib.quote(role_name) + try: user_name,role_name = role_name.split(".", 1) except: |