Project

General

Profile

Tâche #20647

Scénario #20697: Finaliser l'action DHCP

Dans l'action DHCP, la réservation d'un Bail DHCP sans nom ne devrait pas lever une exception

Added by Gwenael Remond over 3 years ago. Updated about 3 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
05/29/2017
Due date:
% Done:

100%

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

Description

The minion function caused an exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 1363, in _thread_return return_data = executor.execute() File "/usr/lib/python2.7/dist-packages/salt/executors/direct_call.py", line 28, in execute return self.func(*self.args, **self.kwargs) File "/var/cache/salt/minion/extmods/modules/ead/__init__.py", line 54, in func return getattr(module, function)(*args, **kwargs) File "/var/cache/salt/minion/extmods/modules/ead/dhcp/__init__.py", line 575, in upsert_reserved hostname[idx] = host['hostname'] File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 762, in __setitem__ self._setitem(index, value) File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 776, in _setitem self._validate(value, fake_context, index, True) File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 899, in _validate raise err ValueError: "<hostname>" est une valeur invalide pour l'option "Nom de la machine" de type nom de domaine

Associated revisions

Revision c9fdb5ee (diff)
Added by Emmanuel GARETTE over 3 years ago

better hostname validation (ref #20647)

Revision b53bad7a (diff)
Added by Emmanuel GARETTE over 3 years ago

test hostname validation (ref #20647)

Revision 2b48e389 (diff)
Added by Emmanuel GARETTE over 3 years ago

better hostname validation (ref #20647)

Revision 9ec50f6b (diff)
Added by Emmanuel GARETTE over 3 years ago

test hostname validation (ref #20647)

History

#1 Updated by Emmanuel GARETTE over 3 years ago

  • Tracker changed from Demande to Tâche
  • Status changed from Nouveau to Résolu
  • Assigned To set to Emmanuel GARETTE
  • % Done changed from 0 to 100
  • Estimated time set to 0.25 h
  • Parent task set to #20629
  • Remaining (hours) set to 0.25

#2 Updated by Emmanuel GARETTE over 3 years ago

  • Parent task changed from #20629 to #20697

#3 Updated by William Petit about 3 years ago

  • Project changed from eole-ead3 to EWT
  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

Also available in: Atom PDF