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

Check feature list length #96

Merged
merged 1 commit into from
Oct 9, 2019
Merged

Check feature list length #96

merged 1 commit into from
Oct 9, 2019

Conversation

in0rdr
Copy link
Contributor

@in0rdr in0rdr commented Oct 3, 2019

This fixes the following error, when trying to create an lxc container without any features (as non-root user):

2019-10-03T06:11:28.596+0200 [DEBUG] plugin.terraform-provider-proxmox: 	/home/andi/gocode/src/github.com/Telmate/terraform-provider-proxmox/proxmox/resource_lxc.go:522 +0x5e9

Terraform example:

resource "proxmox_lxc" "lxc-test" {
    # features {
    #     nesting = true
    # }
    hostname = "tf1"
    network {
        id = 0
        name = "eth0"
        bridge = "vmbr0"
        ip = "dhcp"
        ip6 = "dhcp"
    }
    ostemplate = "shared:vztmpl/centos-7-default_20171212_amd64.tar.xz"
    password = "rootroot"
    pool = "pool1"
    storage = "local-lvm"
    target_node = "node1"
}

@ggongaware ggongaware merged commit 42a9c68 into Telmate:master Oct 9, 2019
@in0rdr in0rdr deleted the fix/empty-feature branch October 9, 2019 20:09
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.

None yet

2 participants