Merge lp:~ltrager/maas/lp1573644 into lp:~maas-committers/maas/trunk
Status: | Merged |
---|---|
Approved by: | Lee Trager |
Approved revision: | no longer in the source branch. |
Merged at revision: | 4953 |
Proposed branch: | lp:~ltrager/maas/lp1573644 |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
304 lines (+165/-20) 7 files modified
src/maasserver/api/tags.py (+45/-7) src/maasserver/api/tests/test_tag.py (+98/-4) src/maasserver/models/node.py (+4/-0) src/maasserver/models/tests/test_node.py (+12/-0) src/maasserver/websockets/handlers/controller.py (+4/-5) src/maasserver/websockets/handlers/device.py (+1/-2) src/maasserver/websockets/handlers/machine.py (+1/-2) |
To merge this branch: | bzr merge lp:~ltrager/maas/lp1573644 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Blake Rouse (community) | Approve | ||
Review via email: mp+292688@code.launchpad.net |
Commit message
Allow showing tags by node, machine, device, rack-controller, or region-controller
Description of the change
This adds machines, devices, rack-controllers, and region-controllers operations on the tag API endpoint. Each will only show the specifies node type which has the specified tags.
While writing this I noticed that Node.objects.
Machine.
I patched get_nodes to filter for the managers specified node_type.
Nicely done. Looks great.