Merge lp:~newell-jensen/maas/move-get-boot-purpose-to-node-model into lp:~maas-committers/maas/trunk
Proposed by
Newell Jensen
Status: | Merged |
---|---|
Approved by: | Newell Jensen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3070 |
Proposed branch: | lp:~newell-jensen/maas/move-get-boot-purpose-to-node-model |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
284 lines (+84/-90) 4 files modified
src/maasserver/api/pxeconfig.py (+5/-36) src/maasserver/api/tests/test_pxeconfig.py (+4/-54) src/maasserver/models/node.py (+32/-0) src/maasserver/models/tests/test_node.py (+43/-0) |
To merge this branch: | bzr merge lp:~newell-jensen/maas/move-get-boot-purpose-to-node-model |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+235736@code.launchpad.net |
Commit message
Moving get_boot_purpose from pxeconfig to the node model.
Description of the change
This change is so that we can get the boot purpose from the node itself instead of from pxeconfig. This work is related to:
https:/
Ultimately these changes are so that we can get PXE Request events without WindowsBootMethod hitting the API for every file, as mentioned in the bug.
To post a comment you must log in.
Looking good. A bit of a shame to see the Node model module continue to grow: we've found the edge of manageability for a single source file to lie somewhere near the thousand-line mark. But yes, this code does look as if it belongs there.