Projet

Général

Profil

0001-convert-to-sql-make-sure-port-number-is-saved-as-an-.patch

Frédéric Péters, 11 mars 2016 10:09

Télécharger (834 octets)

Voir les différences:

Subject: [PATCH] convert-to-sql: make sure port number is saved as an integer
 (#10170)

 wcs/ctl/convertsql.py | 3 +++
 1 file changed, 3 insertions(+)
wcs/ctl/convertsql.py
72 72
        from wcs.formdef import FormDef
73 73
        from wcs import sql
74 74

  
75
        if sub_options.port:
76
            sub_options.port = int(sub_options.port)
77

  
75 78
        pub.cfg['postgresql'] = {
76 79
                'database': sub_options.dbname,
77 80
                'user': sub_options.user,
78
-