Project

General

Profile

Bug #8923

Erreur dans check_hobos à la création d'une nouvelle instance d'un w.c.s. communal en dév

Added by Benjamin Dauvergne almost 7 years ago. Updated almost 7 years ago.

Status:
Fermé
Priority:
Normal
Target version:
Start date:
09 November 2015
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

updating instance in /var/lib/wcs-au-quotidien/role-ville-site.montpellier.entrouvert.org
Traceback (most recent call last):
  File "/usr/sbin/wcsctl", line 8, in <module>
    ctl.run(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/wcs/qommon/ctl.py", line 159, in run
    return cmd.run(args, options)
  File "/usr/lib/python2.7/dist-packages/wcs/qommon/ctl.py", line 69, in run
    return self.execute(base_options, sub_options, args)
  File "/usr/lib/python2.7/dist-packages/wcs/ctl/check_hobos.py", line 102, in execute
    self.update_profile(self.all_services.get('profile', {}), pub)
  File "/usr/lib/python2.7/dist-packages/wcs/ctl/check_hobos.py", line 158, in update_profile
    idp['attribute-mapping'][str(attribute_name)] = str(field_id)
TypeError: 'NoneType' object does not support item assignment

Files

Associated revisions

Revision 300e0a1a (diff)
Added by Benjamin Dauvergne almost 7 years ago

check_hobos: fix attribute_mapping if it contains None (#8923)

History

#2

Updated by Benjamin Dauvergne almost 7 years ago

  • Project changed from Montpellier Méditerranée Métropole to w.c.s.
  • Patch proposed changed from No to Yes
#3

Updated by Benjamin Dauvergne almost 7 years ago

Je n'ai pas vraiment cherché à savoir comment le None était arrivé dans le config.pck à cet endroit.

#4

Updated by Frédéric Péters (de retour le 10/10) almost 7 years ago

  • Status changed from Nouveau to En cours

Le squelette utilisé en dev contient cette erreur; mais ack pour le patch.

#5

Updated by Benjamin Dauvergne almost 7 years ago

  • Status changed from En cours to Résolu (à déployer)
#6

Updated by Frédéric Péters (de retour le 10/10) almost 7 years ago

  • Status changed from Résolu (à déployer) to Fermé
  • Target version set to v1.22

Also available in: Atom PDF