Merge lp:~rvb/maas-test/customize-series-arch into lp:maas-test
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Merged at revision: | 66 |
Proposed branch: | lp:~rvb/maas-test/customize-series-arch |
Merge into: | lp:maas-test |
Diff against target: | 0 lines |
To merge this branch: | bzr merge lp:~rvb/maas-test/customize-series-arch |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+196685@code.launchpad.net |
Commit message
Add option to let the user specify the series and the architecture for which images should be imported.
Description of the change
The main change here is the change to import_
The change to test_setUp_
To post a comment you must log in.
Looks good.
[1]
+ :param series: The Ubuntu series that this MAAS server should use
+ to enlist and commission nodes.
+ :param series: The architecture that this MAAS server should import
+ images for, e.g. 'amd64', 'arm/hightbank'. If the
+ subarchitecture isn't specified, 'generic' is assumed.
I think the second ":param series:" should be ":param architecture:".
[2]
+ :param series: The Ubuntu series for which images should be imported.
+ :param series: The architecture for which images should be imported,
+ e.g. 'amd64', 'arm/hightbank'. If the
+ subarchitecture isn't specified, 'generic' is assumed.
Here too :)
[3]
+ if response.code != httplib.OK:
+ raise Exception("Error configure the commissiong series")
The response may have more information here. How about raising a
urllib2.HTTPError here (assuming that the underlying transport is
provided by urllib2)?
[4]
+ default= latest_ LTS_series,
+ help="The Ubuntu series used to enlist and commission nodes, e.g. "
+ "saucy. Defaults to the latest LTS series (i.e. %s)" %
+ latest_LTS_series)
You can use %(default)s in the help string, iirc:
help="The Ubuntu series used to enlist and commission nodes, e.g. "
" saucy. Defaults to the latest LTS series (i.e. %(default)s)"