Skip to content

Support updating cicustom in place #1527

Description

@ModerNews

Current implementation of the cicustom field has ForceNew set:

func SchemaCiCustom() *schema.Schema {
return &schema.Schema{
Type: schema.TypeString,
ForceNew: true,
Optional: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return sdkCloudInitCustom(new).String() == sdkCloudInitCustom(old).String()
}}
}

This causes relatively trivial from perspective of both cloud-init and Proxmox API changes to destroy VMs (and cause loss of state). This can be amended in other ways, but those are workarounds, while it would be much easier to have cicustom allow updates instead of recreation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions