Merge lp:~jtv/maas/maascli-profile-module into lp:maas/trunk
| Status: | Merged |
|---|---|
| Approved by: | Jeroen T. Vermeulen on 2012-10-08 |
| Approved revision: | 1221 |
| Merged at revision: | 1222 |
| Proposed branch: | lp:~jtv/maas/maascli-profile-module |
| Merge into: | lp:maas/trunk |
| Diff against target: |
134 lines (+125/-0) 2 files modified
src/maascli/profile.py (+66/-0) src/maascli/tests/test_profile.py (+59/-0) |
| To merge this branch: | bzr merge lp:~jtv/maas/maascli-profile-module |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gavin Panella (community) | 2012-10-08 | Approve on 2012-10-08 | |
|
Review via email:
|
|||
Commit Message
Small maascli module for getting profiles.
Description of the Change
These will be needed for the main branch I'm working on. I'm putting these up in smaller chunks so that a human can reasonably review them.
Once this work is complete, when you only have one profile defined in maascli, it will default to operating on that profile. Specifying a profile will be optional in that case. The helpers you see here help the code figure out which profile to use. Several places in the code will need this information. And with varying consequences, which is why there isn't much intelligence in this module: additional cleverness here might suit one use-case but complicate another.
You may wonder why the weirdness with islice() in name_default_
Jeroen

