Merge lp:~andreserl/maas/add_node_distro_series into lp:maas/trunk
Proposed by
Andres Rodriguez
on 2012-09-18
| Status: | Merged |
|---|---|
| Approved by: | Andres Rodriguez on 2012-09-18 |
| Approved revision: | 1015 |
| Merged at revision: | 1016 |
| Proposed branch: | lp:~andreserl/maas/add_node_distro_series |
| Merge into: | lp:maas/trunk |
| Diff against target: |
244 lines (+203/-0) 3 files modified
src/maasserver/enum.py (+18/-0) src/maasserver/migrations/0026_add_node_distro_series.py (+179/-0) src/maasserver/models/node.py (+6/-0) |
| To merge this branch: | bzr merge lp:~andreserl/maas/add_node_distro_series |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Raphaël Badin (community) | 2012-09-18 | Approve on 2012-09-18 | |
|
Review via email:
|
|||
Commit Message
Add distro_series parameter and its migration for src/maasserver/
To post a comment you must log in.


Looks good. Thanks for the change!
[0]
17 +class DISTRO_SERIES:
18 + """List of supported ubuntu releases."""
19 + #:
20 + default = ''
21 + #:
22 + precise = 'precise'
23 + #:
24 + quantal = 'quantal'
Please add a comment here to say that this hardcoded for now but that is only temporary.
[1]
240 + blank=True, default='')
default should probably be DISTRO_ SERIES. default (that's the same as '' but it's conceptually more accurate)
[3]
$ make lint models/ node.py: 38: 'DISTRO_SERIES' imported but unused
src/maasserver/
[4]
8 + 'DISTRO_SERIES', SERIES_ CHOICES' ,
9 + 'DISTRO_
That's really a detail but we try to keep the elements ordered alphabetically in __all__ :).