fog / fog

The Ruby cloud services library.
http://fog.github.io
MIT License
4.32k stars 1.47k forks source link

[digitalocean|compute] Support using slugs and not just ID #3437

Open wolf31o2 opened 9 years ago

wolf31o2 commented 9 years ago

DO added "slugs" to their API, which allows referencing objects (such as images, or regions) by name, rather than ID. These names do not change, even when the underlying object and ID are updated.

https://developers.digitalocean.com/#list-all-images

TJM commented 9 years ago

Wow, are you monitoring my communications? I have been troubleshooting this issue, and just filed: http://projects.theforeman.org/issues/9386 downstream. I doubt the region_id's would change significantly, but the image_id's do appear to be somewhat ephemeral.

Are you working on this, or just reporting it?

For what its worth, this uses the V1 API: https://developers.digitalocean.com/v1/images/

~tommy

geemus commented 9 years ago

Sounds like a good fix to make, are either of you interested in working on a pull request around this? Thanks!

wolf31o2 commented 9 years ago

I was reporting it. I may be able to work it into a sprint at work, since our project coopr would benefit greatly from this.

geemus commented 9 years ago

Cool, thanks for the update!

On Sat, Feb 14, 2015 at 11:08 AM, Chris Gianelloni <notifications@github.com

wrote:

I was reporting it. I may be able to work it into a sprint at work, since our project coopr would benefit greatly from this.

Reply to this email directly or view it on GitHub https://github.com/fog/fog/issues/3437#issuecomment-74383061.

TJM commented 9 years ago

If I understand the code, it may be a "one line" fix (adding a "slot" to hold the value) in the model?

EDIT: dealing with support issues this morning, will check back in later if I have a "working" model :)

wolf31o2 commented 9 years ago

Unfortunately, I have been assigned to other projects at work and won't have time to look into this for quote some time.

stale[bot] commented 6 years ago

This issue has been automatically marked stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.

TJM commented 6 years ago

Settle down stale bot :p