Skip to content

Let CreateInstance download and cache image #94

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

Merged

Conversation

gabriel-samfira
Copy link
Member

If we give CreateInstance() a remote image as a source, it will automatically download the image and cache it locally. If configured, LXD will also auto update the image periodically. Using CopyImage() gives us none of this.

This change removes the CopyImage() code and allows CreateImage() to do the right thing.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
@gabriel-samfira gabriel-samfira merged commit 524ed99 into cloudbase:main Jun 4, 2023
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.

1 participant