hobo agent: cast postgresql dsn parts as strings (#40630)

This commit is contained in:
Frédéric Péters 2020-03-10 17:28:09 +01:00
parent 7731e183fd
commit c5f70c4f2d
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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 = {