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

Demo code to set block devices in state #16

Merged
merged 2 commits into from Jan 29, 2015

Conversation

wallyworld
Copy link
Owner

After creating the block devices on a machine, record the info in state.

@@ -327,3 +327,20 @@ func (m *Machine) SetSupportedContainers(containerTypes ...instance.ContainerTyp
func (m *Machine) SupportsNoContainers() error {
return m.SetSupportedContainers([]instance.ContainerType{}...)
}

// DEMO ONLY - NOT PRODUCTION
// This duplicates api on diskmanager. Need to consolidate.
Copy link
Collaborator

Choose a reason for hiding this comment

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

not really, once we separate volumes/block-devices

@axw
Copy link
Collaborator

axw commented Jan 29, 2015

Please use setProvisionedBlockDeviceInfo instead. With that, LGTM.

wallyworld added a commit that referenced this pull request Jan 29, 2015
Demo code to set block devices in state
@wallyworld wallyworld merged commit 708c954 into storage-feature Jan 29, 2015
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