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

Instance: Make image attribut optional #97

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

JulesdeCube
Copy link

This pull request allow the creation of empty instance with no image.

It fixes #42 and introduce a new ACC test (TestAccInstance_noImage).

@stgraber
Copy link
Member

stgraber commented Jul 8, 2024

Tiny issue with the Signed-off-by line detected by our automated test.
It expects the Signed-off-by line to match the Author field of the commit.

@JulesdeCube
Copy link
Author

Tiny issue with the Signed-off-by line detected by our automated test. It expects the Signed-off-by line to match the Author field of the commit.

Sorry it's fix.

Make image instance attribut optional and modify Create method to
to retrive image only when needed.

fix lxc#42

Signed-off-by: Jules Lefebvre <juleslefebvre.pro@outlook.fr>
Add ACC test for instance with no image.

Signed-off-by: Jules Lefebvre <juleslefebvre.pro@outlook.fr>
Copy link
Member

@maveonair maveonair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let's merge this pull request when the tests are green.

@maveonair maveonair merged commit 1dcfd1a into lxc:main Jul 8, 2024
10 checks passed
@JulesdeCube JulesdeCube deleted the instance-no-image branch July 11, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

image should not be required for incus_instance
3 participants