hobo agent: cast postgresql dsn parts as strings (#40630)
This commit is contained in:
parent
7731e183fd
commit
c5f70c4f2d
|
@ -26,7 +26,7 @@ from django.conf import settings
|
|||
|
||||
|
||||
def pg_dsn_quote(value):
|
||||
return "'%s'" % value.replace('\\', '\\\\').replace('\'', '\\\'')
|
||||
return "'%s'" % str(value).replace('\\', '\\\\').replace('\'', '\\\'')
|
||||
|
||||
|
||||
def config_parser_quote(value):
|
||||
|
|
|
@ -46,7 +46,7 @@ def test_deploy_specifics(tmpdir, settings, monkeypatch):
|
|||
'HOST': 'hostname.zob.org',
|
||||
'USER': 'hep',
|
||||
'PASSWORD': 'a \'%fc',
|
||||
'PORT': '1234',
|
||||
'PORT': 1234,
|
||||
}
|
||||
}
|
||||
hobo_environment = {
|
||||
|
|
Loading…
Reference in New Issue