pachadotdev / analogsea

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

docklet_create does not work anymore #55

Closed behrica closed 9 years ago

behrica commented 9 years ago

My last change you pulled in, #54, caused it. Now doing: docklet_create(ssh_keys=c(42550),region="ams1")

gives

Error: This region does not support creating user data.

It seems that even "empty user data" makes the API call fail, if a region does not support it

sckott commented 9 years ago

looking at the web interface, they show a tooltip when hovering over ams1

screen shot 2014-10-02 at 1 21 34 pm

docklet_create(region = "ams2") works fine for me

behrica commented 9 years ago

Yes, because ams2 allows userdata. So passing in "empty" user data (as my latest change does), is not a problem. By calling regions() you can see which regions allow user_data (the ones which have teh feature "metadata".

I have a fix already, to just not have user_data in the request body at all (if not given). I send a pull request soon.