pachadotdev / analogsea

Digital Ocean R client
https://pacha.dev/analogsea/
Apache License 2.0
155 stars 24 forks source link

fixes #55 #56

Closed behrica closed 10 years ago

behrica commented 10 years ago

Remove user_data from request body, if not given

hadley commented 10 years ago

That shouldn't be necessary, and if it is it should be fixed at a higher level.

behrica commented 10 years ago

The DO REST Api fails if you pass user_data(even empty) and a region, which does not support user_data.

So I think the droplet_new method should make sure that this cannot happen.

in my view this is a special case of user_data.

All other api parameters seem to be ignored, if empty.

Right now droplet_new always sets user_data (eventually empty.)