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

Fix Device.InterfaceSet to not return an error. #34

Merged
merged 1 commit into from
Apr 13, 2016

Conversation

howbazaar
Copy link
Contributor

As of r4900 of lp:maas we now have the interfaces for a device returned.

@@ -253,6 +259,10 @@ func device_2_0(source map[string]interface{}) (*device, error) {
// From here we know that the map returned from the schema coercion
// contains fields of the right type.

interfaceSet, err := readInterfaceList(valid["interface_set"].([]interface{}), interface_2_0)
if err != nil {
return nil, errors.Trace(err)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrap with a gomaasapi error type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readInterfaceList already returns gomaasapi error types.

@mjs
Copy link

mjs commented Apr 13, 2016

LGTM

@howbazaar
Copy link
Contributor Author

$$merge$$

@jujubot
Copy link
Contributor

jujubot commented Apr 13, 2016

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

@jujubot jujubot merged commit 46d6ea1 into juju:master Apr 13, 2016
@howbazaar howbazaar deleted the device-interfaces-no-error branch April 13, 2016 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants