Skip to content

coder_parameter default value for type string is empty #218

Open
@NiklasRosenstein

Description

@NiklasRosenstein

The placeholder for a string parameter suggests that if you leave the field empty, the parameter default will be used. However, what you actually get in the Terraform run is an empty string.

image

Activity

matifali

matifali commented on Apr 30, 2024

@matifali
Member

The module dotfiles was recently updated to support a default fallback repo.

module "dotfiles" {
  source               = "registry.coder.com/modules/dotfiles/coder"
  version              = "1.0.12"
  agent_id             = coder_agent.example.id
  default_dotfiles_uri = "https://github.com/coder/dotfiles"
}
NiklasRosenstein

NiklasRosenstein commented on May 3, 2024

@NiklasRosenstein
Author

@matifali We're not using this module. I suppose it is relatively easy to work around this issue by falling back to your default value, but it requires you to mention the default URL at least twice in the template and is not intuitive to workspace template developers.

matifali

matifali commented on May 3, 2024

@matifali
Member

This relates to the provider, and I am moving it to the coder/terraform-provider-coder repo.

cc: @stirby

transferred this issue fromcoder/coderon May 3, 2024
changed the title [-]Users should be able to fall back to the default of a variable by choosing an empty string for the parameter[/-] [+]coder_parameter default value for type string is empty[/+] on May 3, 2024
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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @NiklasRosenstein@matifali

        Issue actions

          coder_parameter default value for type string is empty · Issue #218 · coder/terraform-provider-coder