commit c100c8f1888f8963ed5cf81661e52889d765d2b2
Author: Matt Riedemann <email address hidden>
Date: Fri Feb 16 11:31:10 2018 -0500
Provide a hint when performing a volume action can't find the method
There is no CLI for the os-force_detach volume action API, and while
making a request for it with curl, I mistakenly used the Accept
header rather than the Content-Type header and got the unhelpful
error message:
"There is no such action: None"
We can provide some simple details in the error message about
making sure the request body is correct and that the Content-Type
header is specified to help the user.
Reviewed: https:/ /review. openstack. org/545378 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=c100c8f1888 f8963ed5cf81661 e52889d765d2b2
Committed: https:/
Submitter: Zuul
Branch: master
commit c100c8f1888f896 3ed5cf81661e528 89d765d2b2
Author: Matt Riedemann <email address hidden>
Date: Fri Feb 16 11:31:10 2018 -0500
Provide a hint when performing a volume action can't find the method
There is no CLI for the os-force_detach volume action API, and while
making a request for it with curl, I mistakenly used the Accept
header rather than the Content-Type header and got the unhelpful
error message:
"There is no such action: None"
We can provide some simple details in the error message about
making sure the request body is correct and that the Content-Type
header is specified to help the user.
Change-Id: I00600c297e39c0 dd097f9da80b1dc cb38ee3d235
Closes-Bug: #1749983