Merge lp:~gmb/maas/acquire-and-start-node-bug-1381007 into lp:~maas-committers/maas/trunk
Proposed by
Graham Binns
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3251 |
Proposed branch: | lp:~gmb/maas/acquire-and-start-node-bug-1381007 |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
100 lines (+57/-4) 3 files modified
src/maasserver/models/tests/test_node.py (+21/-0) src/maasserver/node_action.py (+11/-3) src/maasserver/tests/test_node_action.py (+25/-1) |
To merge this branch: | bzr merge lp:~gmb/maas/acquire-and-start-node-bug-1381007 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christian Reis (community) | Approve | ||
Review via email: mp+238279@code.launchpad.net |
Commit message
Update the "Start node" button to show "Acquire and start node" only when the node is READY and there is no owner; otherwise it displays "Start node".
Previously, "Acquire and start node" would appear for admins, even when the node had been allocated.
To post a comment you must log in.
How about a test that guarantees that you can't start+allocate a node if you aren't the owner? I know the UI doesn't let you do that, but shouldn't we have an internal guarantee that we don't mess this up because the UI changed?