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 allow storage constraints to search both physical and virtual(logi… #71

Merged
merged 1 commit into from
Dec 5, 2017

Conversation

ExternalReality
Copy link

…cal) block devices.

Copy link
Member

@jameinel jameinel left a comment

Choose a reason for hiding this comment

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

If its just exposing a different field (BlockDevice) rather than (PhysicalBlockDevice), that seems good.
Do we know that all entries that we've been reading from PhysicalBlockDevices are present in BlockDevices?
If so, LGTM (caveat some comment tweaks, and we should at least have 1 canned test that grabs a MAAS output for Block devices and mocks the response.)

interfaces.go Outdated
@@ -223,6 +223,9 @@ type Machine interface {

// BlockDevices returns all the physical and virtual block devices on the machine.
BlockDevices() []BlockDevice
// PhysicalBlockDevice returns the physical block device for the machine
Copy link
Member

Choose a reason for hiding this comment

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

s/PhysicalBlockDevice/BlockDevice/

and probably not "the physical block device"

@ExternalReality ExternalReality changed the title WIP: Fix allow storage constraints to search bot physical and virtual(logi… WIP: Fix allow storage constraints to search both physical and virtual(logi… Dec 1, 2017
@ExternalReality ExternalReality changed the title WIP: Fix allow storage constraints to search both physical and virtual(logi… Fix allow storage constraints to search both physical and virtual(logi… Dec 5, 2017
Copy link

@anastasiamac anastasiamac left a comment

Choose a reason for hiding this comment

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

Looks really neat!
Thank you for clear explanatory comments :)

@ExternalReality
Copy link
Author

$$MERGE$$

@jujubot
Copy link
Contributor

jujubot commented Dec 5, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju-gomaasapi

@jujubot jujubot merged commit 663f786 into juju:master Dec 5, 2017
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.

4 participants