Merge lp:~rvb/maas/zone-placement into lp:~maas-committers/maas/trunk
Proposed by
Raphaël Badin
Status: | Merged |
---|---|
Approved by: | Raphaël Badin |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1771 |
Proposed branch: | lp:~rvb/maas/zone-placement |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
146 lines (+69/-2) 5 files modified
src/maasserver/api.py (+3/-0) src/maasserver/node_constraint_filter_forms.py (+22/-1) src/maasserver/static/css/components/search_box.css (+1/-1) src/maasserver/tests/test_api_nodes.py (+21/-0) src/maasserver/tests/test_node_constraint_filter_forms.py (+22/-0) |
To merge this branch: | bzr merge lp:~rvb/maas/zone-placement |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+198547@code.launchpad.net |
Commit message
Add a constraint to acquire nodes located in a particular availability zone.
Description of the change
The CSS fix is a simple drive-by fix to reduce the size of the search box on the node listing page.
To post a comment you must log in.
Not quite voting yet, because the diff isn't updating for some reason and I haven't seen the final branch yet.
As for the actual code I do see, two notes that apply in multiple places:
1. Where possible, please avoid implicit boolean conversions! Instead of “if zone:” say “if zone is not None:” or “if zone != '':” etc.
2. In several places you basically do:
node = factory.make_node() make_zone( nodes=[ node])
zone = factory.
I think it would be just slightly more obvious to do...
zone = factory.make_zone() make_node( zone=zone)
node = factory.