Merge lp:~jtv/maas/bug-1077075 into lp:~maas-committers/maas/trunk
Proposed by
Jeroen T. Vermeulen
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jeroen T. Vermeulen | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 1344 | ||||
Proposed branch: | lp:~jtv/maas/bug-1077075 | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Diff against target: |
41 lines (+16/-0) 2 files modified
src/maasserver/forms.py (+5/-0) src/maasserver/tests/test_forms.py (+11/-0) |
||||
To merge this branch: | bzr merge lp:~jtv/maas/bug-1077075 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphaël Badin (community) | Approve | ||
Review via email: mp+133718@code.launchpad.net |
Commit message
Fix oops when renaming accepted nodegroup without interfaces.
Description of the change
This came up during Q/A. Minimal discussion with Raphaël. The “clean” method for NodeGroup.name dereferences the result of NodeGroup.
If there's no interface on a nodegroup, there's no reason to stop the user from renaming the thing. So I changed the method to permit this scenario.
Jeroen
To post a comment you must log in.
Looks good to me.