Interface model validates the MAC address twice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Alberto Donato |
Bug Description
Interface model in src/maasserver/
# Verify that the MAC address is legal if it is not empty.
if self.mac_address:
Another time as a default_validator on MACAddressField, which results in the ValidationError being raised twice for the same field, eg. in a test like the following:
bin/test.region -v maasserver.
Simply dropping validate_mac() from the Interface.clean() resulted in further test failures which I didn't spend time investigating because I was focused on driving the Django upgrade forward.
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → 2.3.0 |
Changed in maas: | |
milestone: | 2.3.0 → 2.3.x |
Changed in maas: | |
milestone: | 2.3.x → 3.4.0 |
status: | Invalid → In Progress |
assignee: | nobody → Alberto Donato (ack) |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
This bug has not seen any activity in the last 6 months, so it is being automatically closed.
If you are still experiencing this issue, please feel free to re-open.
MAAS Team