[2.1] Deleting all boot sources and creating a new boot source, does not update the cache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Lee Trager |
Bug Description
This is a really bad check:
def is_first_
"""Store whether or not this is the first BootSource added to MAAS.
On first run the ImportResourceS
caches the stream's contents as normal. Setting the default BootSource
triggers this signal. This prevents updating the cache twice.
"""
instance.
This makes it so if you deleted all boot sources then create a new source the cache will not be updated. This prevents the ability to make any selections as MAAS thinks the source has no items. This is only an issue with the API and something I am running into with meta-MAAS.
Related branches
- Blake Rouse (community): Approve
-
Diff: 126 lines (+39/-16)2 files modifiedsrc/maasserver/models/signals/bootsources.py (+9/-12)
src/maasserver/models/signals/tests/test_bootsources.py (+30/-4)
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
assignee: | nobody → Lee Trager (ltrager) |
Changed in maas: | |
status: | Fix Committed → Fix Released |