mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Allow space in SCM password. Fixes https://trello.com/c/KaqasZPa
This commit is contained in:
parent
c014399d6e
commit
41ac7c4d96
@ -10,6 +10,7 @@ import re
|
||||
import subprocess
|
||||
import stat
|
||||
import sys
|
||||
import urllib
|
||||
import urlparse
|
||||
import threading
|
||||
import contextlib
|
||||
@ -235,7 +236,7 @@ def update_scm_url(scm_type, url, username=True, password=True,
|
||||
netloc_password = ''
|
||||
|
||||
if netloc_username and parts.scheme != 'file':
|
||||
netloc = u':'.join(filter(None, [netloc_username, netloc_password]))
|
||||
netloc = u':'.join([urllib.quote(x) for x in (netloc_username, netloc_password) if x])
|
||||
else:
|
||||
netloc = u''
|
||||
netloc = u'@'.join(filter(None, [netloc, parts.hostname]))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user