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

random_string crashing when length is zero #222

Closed
1 task done
sumanth-lingappa opened this issue Mar 23, 2022 · 1 comment · Fixed by #234
Closed
1 task done

random_string crashing when length is zero #222

sumanth-lingappa opened this issue Mar 23, 2022 · 1 comment · Fixed by #234
Labels
Milestone

Comments

@sumanth-lingappa
Copy link

sumanth-lingappa commented Mar 23, 2022

Terraform CLI and Provider Versions

❯ terraform version
Terraform v1.1.1
on darwin_amd64
+ provider registry.terraform.io/hashicorp/random v3.1.2

Terraform Configuration

terraform {
  required_providers {
    random = {
      source  = "hashicorp/random"
      version = "3.1.2"
    }
  }
}

provider "random" {
  # Configuration options
}
resource "random_string" "random" {
  length  = 0
  special = false
}

Expected Behavior

when length is zero, the expectation is to return an empty string.

Actual Behavior

❯ terraform apply
random_string.random: Creating...
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to random_string.random, provider "provider[\"registry.terraform.io/hashicorp/random\"]" produced an unexpected new value: Root resource was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Steps to Reproduce

  1. terraform apply

How much impact is this issue causing?

High

Logs

https://gist.github.com/sumanth-lingappa/a4934f49c03f1dae4a2a509e1c162a04

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants