Merge lp:~jtv/maas/bug-1058282-ditch-api into lp:maas/trunk
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Jeroen T. Vermeulen on 2012-10-04 | ||||
| Approved revision: | 1161 | ||||
| Merged at revision: | 1168 | ||||
| Proposed branch: | lp:~jtv/maas/bug-1058282-ditch-api | ||||
| Merge into: | lp:maas/trunk | ||||
| Diff against target: |
98 lines (+58/-17) 2 files modified
src/maascli/__init__.py (+5/-17) src/maascli/tests/test_integration.py (+53/-0) |
||||
| To merge this branch: | bzr merge lp:~jtv/maas/bug-1058282-ditch-api | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| John A Meinel | Approve on 2012-10-04 | ||
| Jeroen T. Vermeulen (community) | Abstain on 2012-10-04 | ||
|
Review via email:
|
|||
Commit Message
Ditch the "api" module identifier on maascli command lines. It's the only module we have right now, and in a future where we have others, it's still the sensible default.
Description of the Change
Pre-imped with Gavin. This shortens all maascli command lines by one word: not enough to make it properly user-friendly, but it's one step in the right direction.
You'll note that there was no integration test for this change to break. So I added one. Not quite detailed enough that it would have noticed the change, but enough that it would have noticed if I broke the command entirely.
Jeroen
| John A Meinel (jameinel) wrote : | # |
You've removed the ability to add modules dynamically (via bootstrapping your model into the dict), but it probably isn't a big deal.
I'm a little concerned about namespacing errors as we move forward, which I'm sure is why Gavin did it in the first place.
But I agree that it is nice to be less wordy in getting things done (bin/maascli api maas tags list is a bit longwinded)


Oops. Accidentally voted Approve.