Projet

Général

Profil

Bug #40630

agent hobo, AttributeError: 'int' object has no attribute 'replace'

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
10 mars 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

  File "/usr/lib/python2.7/dist-packages/hobo/agent/common/management/commands/hobo_deploy.py", line 70, in handle
    self.deploy(base_url, hobo_environment, ignore_timestamp)
  File "/usr/lib/python2.7/dist-packages/hobo/agent/common/management/commands/hobo_deploy.py", line 95, in deploy
    self.deploy_specifics(hobo_environment, tenant)
  File "/usr/lib/python2.7/dist-packages/bijoe/hobo_agent/management/commands/hobo_deploy.py", line 60, in deploy_specifics
    pg_dsn_quote(settings.DATABASES[\'default\'].get(pg_dsn_part[0]))))
  File "/usr/lib/python2.7/dist-packages/bijoe/hobo_agent/management/commands/hobo_deploy.py", line 29, in pg_dsn_quote
    return "'%s'" % value.replace('\\', '\\\\').replace('\'', '\\\'')
AttributeError: 'int' object has no attribute 'replace'

Fichiers

Révisions associées

Révision c5f70c4f (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

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

Historique

#1

Mis à jour par Frédéric Péters il y a environ 4 ans

#2

Mis à jour par Valentin Deniaud il y a environ 4 ans

  • Statut changé de Solution proposée à Solution validée

Dans test_hobo_deploy.py, il y a

'PORT': '1234',

que tu peux changer en int pour mettre en évidence le bug, sa correction, tout ça.

#3

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit c5f70c4f2df1e0ff016bf6f433540ec60cdbd46a
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Mar 10 17:28:09 2020 +0100

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

Mis à jour par Frédéric Péters il y a environ 4 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF