Merge lp:~julian-edwards/maas/nicer-mac-address-error into lp:~maas-committers/maas/trunk
Proposed by
Julian Edwards
Status: | Merged |
---|---|
Approved by: | Julian Edwards |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1204 |
Proposed branch: | lp:~julian-edwards/maas/nicer-mac-address-error |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
59 lines (+30/-1) 2 files modified
src/maasserver/api.py (+10/-1) src/maasserver/tests/test_api.py (+20/-0) |
To merge this branch: | bzr merge lp:~julian-edwards/maas/nicer-mac-address-error |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
John A Meinel (community) | Approve | ||
Review via email: mp+128421@code.launchpad.net |
Commit message
Present a nice error rather than a stack trace when bad MAC addresses are detected in the API call to Nodes/list().
To post a comment you must log in.
I thought Validation error took a dict of {'variable': 'message'} so the exception should be: invalid_ macs)})
ValueError({'macs': "Invalid MAC address(es): %s" % ", ".join(
Otherwise, good.