Project

General

Profile

Tâche #15572

Scénario #15610: Corriger les problèmes liés à Creole 2.6

CreoleLint plante sur le template dhcpd.conf

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

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/23/2016
Due date:
% Done:

100%

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

Description

Lancement de CreoleLint sur Horus 2.6.0 instancié :

 \-- /usr/share/eole/creole/distrib/dhcpd.conf
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/creole/lint/parsetemplate.py", line 517, in test_all_values
    ret = self.test_all_values_for(list(requires_options), 0)
  File "/usr/lib/python2.7/dist-packages/creole/lint/parsetemplate.py", line 458, in test_all_values_for
    ret = self.test_all_values_for(options[1:], cpt + 1)
  File "/usr/lib/python2.7/dist-packages/creole/lint/parsetemplate.py", line 464, in test_all_values_for
    self.template()
  File "/usr/lib/python2.7/dist-packages/creole/lint/parsetemplate.py", line 380, in template
    dico[path_] = get_value(opt_, path_, second_pass)
  File "/usr/lib/python2.7/dist-packages/creole/lint/parsetemplate.py", line 348, in get_value
    populate_mandatory(config, opt_, 'creole.' + path_)
  File "/usr/lib/python2.7/dist-packages/creole/lint/parsetemplate.py", line 199, in populate_mandatory
    value = option._values[0]
AttributeError: 'ChoiceOption' object has no attribute '_values'
('/usr/share/eole/creole/distrib/dhcpd.conf', ':', AttributeError("'ChoiceOption' object has no attribute '_values'",))

Associated revisions

Revision f680a45f (diff)
Added by Emmanuel GARETTE over 5 years ago

récupérer correctement la 1er valeur d'un ChoiceOption (ref #15572)

History

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

  • Parent task changed from #15349 to #15610

#2 Updated by Scrum Master over 5 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Emmanuel GARETTE over 5 years ago

  • Assigned To set to Emmanuel GARETTE

#4 Updated by Emmanuel GARETTE over 5 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#5 Updated by Scrum Master over 5 years ago

  • Status changed from En cours to Résolu

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

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

OK avec creole 2.6.0-14

Also available in: Atom PDF