Use the new boot-resources endpoint in MAAS 2 support #4962

Merged
merged 13 commits into from Apr 4, 2016

Conversation

Projects
None yet
3 participants

Change fetching boot images to use the new boot-resources endpoint for MAAS 2, with associated refactoring and test support.

(Review request: http://reviews.vapour.ws/r/4401/)

Michael Foord and others added some commits Mar 31, 2016

Add test for maasEnviron.SupportedArchitectures with MAAS 2
Added fakeBootResource, changed fakeController so it could have an
error or a slice of boot resources.
Disentangle the MAAS 1v2 logic in SupportedArchitectures
Rather than having a branch in SupportedArchitectures for the
nodeArchitectures fallback and then another in allBootImages, base it
all on one branch in SupportedArchitectures.
Refactored allBootImages and allBootImages2 to be about architectures
Rather than deduping boot images and then doing another pass to dedupe to architectures.

I'm not sure this is worthwhile, it's mostly refactoring the old code path.

$$merge$$

Contributor

jujubot commented Apr 4, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 5d70bff into juju:maas2 Apr 4, 2016

@voidspace voidspace deleted the voidspace:maas2-use-boot-resources branch Oct 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment