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

Add dobs support for VolumeInspectByName #581

Merged
merged 1 commit into from Jun 26, 2017

Conversation

codenrhoden
Copy link
Contributor

This patch add the VolumeInspectByName function to the dobs driver,
allowing a caller to more efficiently retrieve a single volume when
doing a lookup by name instead of by ID.

When looking up a volume by name instead of ID, the DO API requires a
region, so the way a region was looked up was changed to have
commonality between VolumeCreate() and VolumeInspectByName().
VolumeCreate() retains the additional capability to read a region from
the AvailabilityZone create option.

The order of precedence for region is:

  1. az op (create only)
  2. IID header field
  3. driver config

This patch add the VolumeInspectByName function to the dobs driver,
allowing a caller to more efficiently retrieve a single volume when
doing a lookup by name instead of by ID.

When looking up a volume by name instead of ID, the DO API requires a
region, so the way a region was looked up was changed to have
commonality between VolumeCreate() and VolumeInspectByName().
VolumeCreate() retains the additional capability to read a region from
the AvailabilityZone create option.

The order of precedence for region is:
1. az op (create only)
2. IID header field
3. driver config
@codenrhoden codenrhoden added this to the 2017.06-2 milestone Jun 22, 2017
@codecov-io
Copy link

codecov-io commented Jun 22, 2017

Codecov Report

Merging #581 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #581   +/-   ##
=======================================
  Coverage   28.42%   28.42%           
=======================================
  Files          34       34           
  Lines        2016     2016           
=======================================
  Hits          573      573           
  Misses       1381     1381           
  Partials       62       62

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb8a4bc...6e0bf07. Read the comment docs.

@akutz akutz merged commit 2565f3a into thecodeteam:master Jun 26, 2017
@codenrhoden codenrhoden deleted the enhancement/dobs_volumebyname branch June 26, 2017 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants