Merge lp:~allenap/maas/pxe-intel-arch-config into lp:maas/trunk
| Status: | Merged |
|---|---|
| Approved by: | Gavin Panella on 2012-08-24 |
| Approved revision: | 900 |
| Merged at revision: | 924 |
| Proposed branch: | lp:~allenap/maas/pxe-intel-arch-config |
| Merge into: | lp:maas/trunk |
| Diff against target: |
477 lines (+53/-311) 4 files modified
src/maasserver/api.py (+30/-17) src/maasserver/kernel.py (+0/-63) src/maasserver/tests/test_api.py (+23/-55) src/maasserver/tests/test_kernel.py (+0/-176) |
| To merge this branch: | bzr merge lp:~allenap/maas/pxe-intel-arch-config |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Jeroen T. Vermeulen (community) | 2012-08-23 | Approve on 2012-08-24 | |
|
Review via email:
|
|||
Commit Message
The pxeconfig API view now returns a representation of a KernelParameters instance.
Description of the Change
Create a KernelParameters object, and serialize it, in pxeconfig, eliminating the need for the transitional "kernel" module.
- 896. By Gavin Panella on 2012-08-23
-
Merged trunk into pxe-intel-
arch-config.
| Jeroen T. Vermeulen (jtv) wrote : | # |
Quick convenience ref: to use that “get zero or one item” helper:
from maasserver.
model = get_one(
Jeroen
- 897. By Gavin Panella on 2012-08-24
-
Comment on default to i386.
- 898. By Gavin Panella on 2012-08-24
-
Merged trunk into pxe-intel-
arch-config. - 899. By Gavin Panella on 2012-08-24
-
Use get_one().
| Gavin Panella (allenap) wrote : | # |
> Why is it OK to force enlistment to use an i386 initrd? At the very least
> this is worth a comment.
It's a lowest common denominator (for now, until ARM comes). I've
added some comments to explain.
> Also, the way Django's Manager.get() pushes you towards using exceptions as
> non-exceptional control flow is really getting to me. In this case it's
> clearly meant to be a normal “if,” but the layer below checks for empty result
> and raises an exception just so you can then catch it again. Worth a wrapper
> similar to Storm's result.one() maybe? I think I'll just hack one up so that
> we can solve this once and for all.
Tip-top, I've used get_one().
- 900. By Gavin Panella on 2012-08-24
-
Merged trunk into pxe-intel-
arch-config, resolving conflicts.
| Jeroen T. Vermeulen (jtv) wrote : | # |
Thanks for the changes. And, er, sorry for those conflicts... <cough>


Why is it OK to force enlistment to use an i386 initrd? At the very least this is worth a comment.
Also, the way Django's Manager.get() pushes you towards using exceptions as non-exceptional control flow is really getting to me. In this case it's clearly meant to be a normal “if,” but the layer below checks for empty result and raises an exception just so you can then catch it again. Worth a wrapper similar to Storm's result.one() maybe? I think I'll just hack one up so that we can solve this once and for all.