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

getVmdk needs to return correct JSON error, and print more info in error case #661

Merged
merged 1 commit into from Oct 29, 2016

Conversation

msterin
Copy link
Contributor

@msterin msterin commented Oct 29, 2016

if "getVmdk" error was hit, it was not returning proper json message. Now it does.
Tested by manually corrupting KV file and running docker volume inspect <vol>

Output:

root@photon-1uL8XNsuB [ ~ ]# docker volume inspect ty1
[]
Error response from daemon: get ty1: VolumeDriver.Get: Failed to get disk details for /vmfs/volumes/datastore1/dockvols/ty1.vmdk ('created-by')

Copy link
Contributor

@pdhamdhere pdhamdhere left a comment

Choose a reason for hiding this comment

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

Lgtm

@msterin msterin merged commit d618cff into master Oct 29, 2016
@msterin msterin deleted the err-in-get.msterin branch October 29, 2016 00:29
@msterin msterin changed the title Now getVmdk returns correct JSON error, and prints more info getVmdk needs to return correct JSON error, and print more info in error case Oct 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants