Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Using proper volume size for volume creating #162

Closed
wants to merge 5 commits into from
Closed

Using proper volume size for volume creating #162

wants to merge 5 commits into from

Conversation

zhiyanliu
Copy link
Contributor

Correct the logic that used to find the closet capacity to the requested
volume size. Without this change, for example, end user even couldn't
create an 1GB volume from SL backend by jumpgate.

Signed-off-by: Zhi Yan Liu [email protected]

@jimlindeman
Copy link
Contributor

Yes, this ensures the given volume size is always >= the requested volume size. +1


return price_matrix[capacity_idx]
try:
# find the closet capacity to the requested size
Copy link
Member

Choose a reason for hiding this comment

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

typo here - should be "closest"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good eyes ;) , Done.

zhiyanliu and others added 2 commits December 2, 2014 13:48
Correct the logic that used to find the closet capacity to the requested
volume size. Without this change, for example, end user even couldn't
create an 1GB volume from SL backend by jumpgate.

Signed-off-by: Zhi Yan Liu <[email protected]>
@zhiyanliu zhiyanliu closed this Dec 2, 2014
@zhiyanliu zhiyanliu deleted the using-proper-size-for-volume-creating branch December 2, 2014 06:01
@zhiyanliu
Copy link
Contributor Author

Sorry, some wrong happened, please check #163 for latest change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants