mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Addresses #5364 urllib quote role names
This commit is contained in:
parent
2a9fd98f41
commit
a14d1ca485
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,7 @@ import shutil
|
|||
import sys
|
||||
import tarfile
|
||||
import tempfile
|
||||
import urllib
|
||||
import urllib2
|
||||
import yaml
|
||||
|
||||
|
@ -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.
|
||||
"""
|
||||
|
||||
role_name = urllib.quote(role_name)
|
||||
|
||||
try:
|
||||
user_name,role_name = role_name.split(".", 1)
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue