Projet

Général

Profil

0001-hobo-agent-cast-postgresql-dsn-parts-as-strings-4063.patch

Frédéric Péters, 10 mars 2020 17:29

Télécharger (915 octets)

Voir les différences:

Subject: [PATCH] hobo agent: cast postgresql dsn parts as strings (#40630)

 bijoe/hobo_agent/management/commands/hobo_deploy.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bijoe/hobo_agent/management/commands/hobo_deploy.py
26 26

  
27 27

  
28 28
def pg_dsn_quote(value):
29
    return "'%s'" % value.replace('\\', '\\\\').replace('\'', '\\\'')
29
    return "'%s'" % str(value).replace('\\', '\\\\').replace('\'', '\\\'')
30 30

  
31 31

  
32 32
def config_parser_quote(value):
33
-