Kami opened a new pull request #1329: Throw more user-friendly exception in EC2 
driver on invalid request parameter type
URL: https://github.com/apache/libcloud/pull/1329
 
 
   EC2 driver uses ``GET`` and not ``POST`` method for all the outgoing HTTP 
requests. This means all the action parameters are sent via query parameters 
and not as a request body.
   
   This means all the parameter values needs to be of a simple type (string), 
otherwise it won't work as expected.
   
   This pull request updates the code to fail loudly and throw a user-friendly 
exception in case invalid type is provided for ``params`` dictionary item 
value. Previously a very cryptic error was throw so it was hard to figure out 
why it's failing.
   
   As a bonus, this change already uncovered a small bug in the Outscale driver 
- 3dadc47c03a2cb71887b13ed247e98562b9db39a.
   
   Resolves #1232 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to