[2.5] "dnsresources read all=true" does not return synthetic records unless at least one non-synthetic record exists
Bug #1791383 reported by
Mike Pontillo
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Mike Pontillo |
Bug Description
When using the "dnsresources read" API endpoint with the "all=true" parameter in order to show synthetic records in addition to concrete records, (due to essentially an off-by-one error) the endpoint does not return any results unless at least one concrete record is defined.
Related branches
~mpontillo/maas:fix-dnsresource-synthetic-records-for-zero-record-case--bug-1791383
Merged
into
maas:master
- MAAS Lander: Approve
- Andres Rodriguez (community): Approve
-
Diff: 133 lines (+60/-25)2 files modifiedsrc/maasserver/api/dnsresources.py (+35/-25)
src/maasserver/api/tests/test_dnsresources.py (+25/-0)
Changed in maas: | |
milestone: | none → 2.5.0beta1 |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.