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

fix: virtual-machine instead of vm #19

Merged
merged 4 commits into from
Nov 29, 2024
Merged

fix: virtual-machine instead of vm #19

merged 4 commits into from
Nov 29, 2024

Conversation

kmpm
Copy link
Owner

@kmpm kmpm commented Nov 29, 2024

domodwyer and others added 4 commits November 29, 2024 16:27
The incus_instance task would only allow "container" and "vm" to be
passed as the instance type, but using "vm" would rest in a server
error:

    Unexpected instance type "vm"

The argument sent by the CLI is "virtual-machine":

    {
            "architecture": "",
            "config": {},
            "devices": {},
            "ephemeral": false,
            "profiles": null,
            "stateful": false,
            "description": "",
            "name": "bananas",
            "source": {
                    "type": "image",
                    "certificate": "",
                    "alias": "debian/bookworm/cloud",
                    "server": "https://images.linuxcontainers.org",
                    "protocol": "simplestreams",
                    "mode": "pull",
                    "allow_inconsistent": false
            },
            "instance_type": "",
      -->   "type": "virtual-machine",   <--
            "start": true
    }

This commit fixes the validation logic to allow the correct VM instance
type to be sent.
@kmpm kmpm merged commit d82590e into main Nov 29, 2024
1 check passed
@kmpm kmpm deleted the domodwyer-dom/fix-vm branch November 29, 2024 15:40
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.

2 participants