-
Notifications
You must be signed in to change notification settings - Fork 28
docs(samples): Adding samples for image related operations #277
Conversation
Here is the summary of changes. You are about to add 3 region tags.
This comment is generated by snippet-bot.
|
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.
Added minor observations
src_img = get_image_from_family('debian-cloud', 'debian-11') | ||
new_image = create_image_from_image(PROJECT, src_img.name, autodelete_image_name, 'debian-cloud', | ||
storage_location='eu') | ||
yield new_image |
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 delete appears to be missing. Should there be a corresponding delete
for the image created using create_image_from_image
?
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.
This fixture uses autodelete_image_name
fixture to get a name for the temporary image. The autodelete_image_name
fixture does the deleting.
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Samples for the Create, delete, and deprecate custom images page.