Commit a14d1ca4 by James Tanner

Addresses #5364 urllib quote role names

parent 2a9fd98f
...@@ -29,6 +29,7 @@ import shutil ...@@ -29,6 +29,7 @@ import shutil
import sys import sys
import tarfile import tarfile
import tempfile import tempfile
import urllib
import urllib2 import urllib2
import yaml import yaml
...@@ -203,6 +204,8 @@ def api_lookup_role_by_name(api_server, role_name): ...@@ -203,6 +204,8 @@ def api_lookup_role_by_name(api_server, role_name):
Uses the Galaxy API to do a lookup on the role owner/name. Uses the Galaxy API to do a lookup on the role owner/name.
""" """
role_name = urllib.quote(role_name)
try: try:
user_name,role_name = role_name.split(".", 1) user_name,role_name = role_name.split(".", 1)
except: except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment