Skip to content
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

Implementing Image Convert action #130

Merged
merged 1 commit into from
Mar 6, 2017
Merged

Implementing Image Convert action #130

merged 1 commit into from
Mar 6, 2017

Conversation

xmudrii
Copy link
Contributor

@xmudrii xmudrii commented Mar 4, 2017

This Pull Requests implement Convert Image action. For example, convert image can be used to convert an backup to a snapshot.

Action is described in Convert - Image Actions API docs.

It's a very similar to a Transfer action. It could be made into one function, but it would require a Transfer rename.
I'm not sure about project backward compatibility policy, so I decided to go with another function.

Because ActionRequest is fixed, and is always taking the same data - type: convert, I predefined it.
If it's the problem, I'll go ahead and make it same as the Transfer action.

This also comes with a test unit for action.

cc @mauricio @aybabtme

@mauricio
Copy link
Contributor

mauricio commented Mar 6, 2017

Awesome!

@mauricio mauricio merged commit 5a09b87 into digitalocean:master Mar 6, 2017
@xmudrii xmudrii deleted the image-action-convert branch April 16, 2017 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants