New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[salt-cloud] Fix creating droplet from snapshot in digital_ocean provider #26824
[salt-cloud] Fix creating droplet from snapshot in digital_ocean provider #26824
Conversation
@Pravka this makes sense, but somebody is going to come along and change it back if there's no comment explaining why it's like this. Could you please add a comment? |
@techhat Thanks -- I dug a little deeper and noticed that the real issue is that So, I've reverted my initial fix and updated tl;dr (for those who might come after me and want to change it): changing |
…hot-in-dov2 [salt-cloud] Fix creating droplet from snapshot in digital_ocean provider
I like it. Thanks @Pravka! |
FYI @techhat, |
Thanks! |
This still has not been merged into 2015.8 or develop. |
…make it to digital_ocean.py in 2015.8
@Pravka However, I think your original concern was correct about the merge forward. I've ported your change to the |
Make sure changes from #26824 to digital_ocean_v2.py driver make it to digital_ocean.py in 2015.8
Ah, yes, I think I saw these changes but since v2 doesn't exist in 2015.8 I disregarded those changes on the merge forward. @rallytime for my information, is 2015.5's digital_ocean_v2 the same as 2015.8's digital_ocean? Was it renamed when the old one was deprecated? |
@basepi Yep. D.O. is removing support for their original API Nov 1st. So I removed the original driver (based on APIv1) and renamed |
Thanks for the heads up. I've probably lost a few fixes on merge forward, unfortunately. |
Yeah I was just thinking that actually. I will see what I can do to get any changes in that driver merged forward today. |
If it hasn't changed substantially in 2015.8 you may be able to just eyeball a diff of the two files and bring over the new stuff from 2015.5. Sorry to make your life difficult. |
|
@Pravka I already did for this particular pull request. It's been merged into the 2015.8 branch in PR #27164. :) What @basepi and I were talking about was if there were other changes to this driver in the 2015.5 branch that didn't make it into the 2015.8 for the same reason that this one didn't. I just didn't even think about it. So, @Pravka I think we're good as far as your change here goes. Thanks again for the fix! |
Awesome. Thanks! |
Problem
Digital Ocean's API returns
'None'
instead ofNone
for a non-existent imageslug
, rendering the conditional inget_image
useless:Solution
if image['slug'] != 'None'
. Fixes #22724.