Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gomaasapi to fix nil reference panic #5271

Merged
merged 2 commits into from Apr 25, 2016

Conversation

babbageclunk
Copy link
Contributor

This fixes the panic in https://bugs.launchpad.net/juju-core/+bug/1573659 - interface nil values were being returned as typed nils and so the nil check for link.Subnet() in maas2NetworkInterfaces wasn't working as intended.

Confirmed that with this change I can now bootstrap to a machine with an unconfigured NIC such that link.Subnet() is nil.

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

This fixes the panic in http://pad.lv/1573659 - interface nil values were
being returned as typed nils and so the nil check for link.Subnet() in
maas2NetworkInterfaces wasn't working as intended.
@babbageclunk
Copy link
Contributor Author

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Apr 25, 2016

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

@jujubot
Copy link
Collaborator

jujubot commented Apr 25, 2016

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/7540

Needed to change to match the updated interface in gomaasapi.
@babbageclunk
Copy link
Contributor Author

Oops, the type of BlockDevice.Size() changed to unit64, updated tests and reran.
$$retry$$

@jujubot
Copy link
Collaborator

jujubot commented Apr 25, 2016

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

@jujubot jujubot merged commit b4921bf into juju:master Apr 25, 2016
@babbageclunk babbageclunk deleted the nil-subnet branch April 25, 2016 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants