Project

General

Profile

Tâche #12431

Distribution EOLE - Scénario #12362: Assistance aux utilisateurs (29-35)

Nouveau cas d'erreur CreoleLint sur Amon 2.5

Added by Joël Cuissinat almost 6 years ago. Updated over 5 years ago.

Status:
Ne sera pas résolu
Priority:
Normal
Assigned To:
Start date:
07/17/2015
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Remaining (hours):
0.0

Description

root@amon:/usr/share/eole/creole/dicos# CreoleLint -d

DTD Non valide (valid_dtd:ERROR:error)

Lint wrong_dicos_name désactivé (niveau info)
Traceback (most recent call last):
  File "/usr/bin/CreoleLint", line 58, in main
    validate(keyword, ansi, tmpl)
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 1110, in validate
    ansi.process(cl)
  File "/usr/lib/python2.7/dist-packages/creole/lint/ansiwriter.py", line 47, in process
    checks = linter.check()
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 968, in check
    self.load_dics()
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 147, in load_dics
    self._collect_vars_in_dicos()
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 234, in _collect_vars_in_dicos
    for path in config.creole.make_dict():
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 463, in make_dict
    force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 477, in _make_sub_dict
    force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 463, in make_dict
    force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 480, in _make_sub_dict
    force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 268, in getattr
    force_permissives=force_permissives)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 185, in getitem
    force_permissives)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 281, in _getitem
    raise config_error
ValueError: valeur invalide pour l'option nom_machine_eth1 : même valeur pour nom_machine_eth1 et nom_machine_eth2, doit être différent

Associated revisions

Revision 6a638292 (diff)
Added by Joël Cuissinat over 5 years ago

CreoleLint pas de validation pour les variables désactivées

  • creole/lint/creolelint.py : suppression des "validator" dans "_collect_vars_in_dicos"

Ref: #12431 @45m

History

#1 Updated by Joël Cuissinat almost 6 years ago

Dans cette partie du code, on accède aux variables désactivées mais les validations sont effectuées y compris sur ces variables.

Correction possible : ne pas effectuer les validations :

config.cfgimpl_get_settings().remove('validator')

Ligne 234 du fichier /usr/lib/python2.7/dist-packages/creole/lint/creolelint.py (fonction _collect_vars_in_dicos)

#2 Updated by Joël Cuissinat almost 6 years ago

  • Assigned To set to Joël Cuissinat

#3 Updated by Joël Cuissinat over 5 years ago

  • Status changed from Nouveau to Résolu

#4 Updated by Joël Cuissinat over 5 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 1.0 to 0.0

OK sur Amon 2.5.1

#5 Updated by Scrum Master over 5 years ago

  • Status changed from Fermé to Ne sera pas résolu

Also available in: Atom PDF