Merge lp:~blake-rouse/maas/fix-1581130 into lp:~maas-committers/maas/trunk
Proposed by
Blake Rouse
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Blake Rouse | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 5129 | ||||
Proposed branch: | lp:~blake-rouse/maas/fix-1581130 | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Diff against target: |
183 lines (+74/-9) 8 files modified
src/maasserver/forms.py (+14/-0) src/maasserver/migrations/builtin/maasserver/0065_larger_osystem_and_distro_series.py (+27/-0) src/maasserver/models/node.py (+2/-2) src/maasserver/node_action.py (+2/-2) src/maasserver/tests/test_forms_bootresource.py (+1/-1) src/maasserver/tests/test_node_action.py (+1/-1) src/maasserver/utils/osystems.py (+7/-1) src/maasserver/utils/tests/test_osystems.py (+20/-2) |
||||
To merge this branch: | bzr merge lp:~blake-rouse/maas/fix-1581130 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+297481@code.launchpad.net |
Commit message
Fix uploading of custom image to strip "custom/" from the name. Fix distro_series and osystem to support longer names that match the same length of a boot resource. Fix issue with raising NodeActionError in the deploy action. Fix boot resources not having a title set falling back to the name of the boot resource.
To post a comment you must log in.
This looks fine, but there's no explanation why much of it is necessary:
- Stripping "custom/" seems a fairly arbitrary thing to do. The clean_name method has a docstring and a comment which are both useful like "2 + 2 # add 2 and 2" is. There needs to be a proper explanation for future maintainers in the code.
- What was the issue with NodeActionError? One test has changed (for two distinct source changes...) and I can't tell how things are better now.
- How come boot resources don't have a title? Is that a bug in simplestreams?
+1, just explain in the code why these changes are necessary.