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

Make dns_servers optional in subnets #44

Merged
merged 2 commits into from
Apr 21, 2016
Merged

Make dns_servers optional in subnets #44

merged 2 commits into from
Apr 21, 2016

Conversation

voidspace
Copy link

Make dns_servers optional in the subnets response from MAAS 2.

@@ -86,7 +86,6 @@ var subnetResponse = `
"space": "space-0",
"id": 34,
"resource_uri": "/MAAS/api/2.0/subnets/34/",
"dns_servers": [],

Choose a reason for hiding this comment

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

How about explicitly using "dns_server": null above instead? Can it be null coming from MAAS or it's just omitted?

Copy link
Author

Choose a reason for hiding this comment

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

I've checked the output - and the problematic one is "null", so I've updated the test.

@dimitern
Copy link

LGTM, thanks!

@voidspace
Copy link
Author

$$merge$$

@jujubot
Copy link
Contributor

jujubot commented Apr 21, 2016

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

@jujubot jujubot merged commit f5c86a2 into juju:master Apr 21, 2016
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