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

KVM template mismatch when using UUID #78

Closed
norrland opened this issue Oct 6, 2022 · 0 comments · Fixed by #96
Closed

KVM template mismatch when using UUID #78

norrland opened this issue Oct 6, 2022 · 0 comments · Fixed by #96

Comments

@norrland
Copy link
Collaborator

norrland commented Oct 6, 2022

When using a UUID as template name, the fix (6cbb0f0) to not cause a replace
doesn't work.

Investigate if the UUID can be used here as well.

ex:

resource "glesys_server" "foo" {
    platform = "KVM"
    template = "7d807e6c-b3db-4b1a-9a9a-d54653883eb7" # Debian 11
    cpu = 1
    memory = 512
    ...
}
norrland added a commit that referenced this issue Nov 1, 2022
When creating a KVM server resource using an UUID template ID as template name, the getTemplate helper could not match this to the ID in ServerDetails.InitialTemplate.

* Add if-statement to check InitialTemplate.ID
* Update glesys_server Tests

Fixes #78
norrland added a commit that referenced this issue Nov 1, 2022
When creating a KVM server resource using an UUID template ID as template name, the getTemplate helper could not match this to the ID in ServerDetails.InitialTemplate.

* Add if-statement to check InitialTemplate.ID
* Update glesys_server Tests

Fixes #78
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 a pull request may close this issue.

1 participant