-
Notifications
You must be signed in to change notification settings - Fork 924
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
LIBCLOUD-494: Add image extension methods for create/copy #222
LIBCLOUD-494: Add image extension methods for create/copy #222
Conversation
Synchronizing changes
Synchronizing fork
Synchronizing fork
Synchronizing fork
Synchronizing fork
Synchronizing fork
Synchronizing fork
Synchronizing fork
Synchronizing fork
…mage calls. The first is ex_copy_image which is used to copy Amazon Machine Images between regions and the second is ex_create_image which can be used to create an AMI from an EBS backed instance.
@@ -1566,6 +1566,105 @@ def delete_key_pair(self, key_pair): | |||
namespace=NAMESPACE) | |||
return element == 'true' | |||
|
|||
def ex_copy_image(self, source_region, image, name=None, description=None): | |||
""" | |||
Copy an Amazon Machine Image from one region to another. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The to be more clear about what is going on, the description should probably say "Copy an Amazon Machine Image from the specified source region to the current region.".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
…is used for create_node and ex_create_image_from_node. Changed no_reboot -> reboot to make things a bit more clear within ex_create_image_from_node.
Fixed the build issue and merged patch into trunk. Thanks! |
This PR adds new extension methods to copy AMIs between Amazon regions and also adds the ability to create an image from an EBS backed instance. Unit tests and new fixtures are included.