Skip to content

Fix volume inspect with empty ID#34770

Merged
yongtang merged 1 commit intomoby:masterfrom
dnephin:fix-client-with-empty-id
Sep 11, 2017
Merged

Fix volume inspect with empty ID#34770
yongtang merged 1 commit intomoby:masterfrom
dnephin:fix-client-with-empty-id

Conversation

@dnephin
Copy link
Copy Markdown
Member

@dnephin dnephin commented Sep 7, 2017

Fixes a problem found here: docker-archive/docker-ce#221 (comment)
Related to a fix: #34487

Using path.Join() strips trailing /, which causes the VolumeInspect call to hit the volume list url. Since volume list returns a json object there is no error and VolumeInspect returns an empty object.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
@vieux
Copy link
Copy Markdown
Contributor

vieux commented Sep 8, 2017

LGTM ping @tiborvass @vdemeester

Copy link
Copy Markdown
Contributor

@boaz0 boaz0 left a comment

Choose a reason for hiding this comment

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

LGTM 2

Copy link
Copy Markdown
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐮

@yongtang yongtang merged commit 63a9ea5 into moby:master Sep 11, 2017
@dnephin dnephin deleted the fix-client-with-empty-id branch September 11, 2017 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants