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

Update tag.html.markdown #409

Merged
merged 1 commit into from
Oct 19, 2021
Merged

Update tag.html.markdown #409

merged 1 commit into from
Oct 19, 2021

Conversation

brenwhyte
Copy link
Contributor

@brenwhyte brenwhyte commented Oct 14, 2021

Hi all o/

So tags, finally! Thank you!

Re the documentation, it currently has:

resource "pagerduty_tag" "example" {
  label = "Product"
  type = "tag"
}

If I try this as is (Terraform 1.0.9) I get:

$ terraform validate

 Error: Unsupported argument
 
   on pagerduty_tag.tf line 3, in resource "pagerduty_tag" "example":
    3:   type  = "tag"
 
 An argument named "type" is not expected here.

Removing the type attribute and it applys just fine

resource "pagerduty_tag" "example" {
  label = "Product"
}
  # pagerduty_tag.example will be created
  + resource "pagerduty_tag" "example" {
      + html_url = (known after apply)
      + id       = (known after apply)
      + label    = "example"
      + summary  = (known after apply)
    }

Hi all o/

So tags, finally! Thank you!

Re the [documentation](https://registry.terraform.io/providers/PagerDuty/pagerduty/latest/docs/resources/tag), it currently has:

`resource "pagerduty_tag" "example" {
  label = "Product"
  type = "tag"
}`


If I try this as is (Terraform 1.0.9) I get:

`$ terraform validate

 Error: Unsupported argument
 
   on pagerduty_tag.tf line 3, in resource "pagerduty_tag" "example":
    3:   type  = "tag"
 
 An argument named "type" is not expected here.
`

Removing the type attribute and it applys just fine

`resource "pagerduty_tag" "example" {
  label = "Product"
}`

`
  # pagerduty_tag.example will be created
  + resource "pagerduty_tag" "example" {
      + html_url = (known after apply)
      + id       = (known after apply)
      + label    = "example"
      + summary  = (known after apply)
    }
`
Copy link
Contributor

@stmcallister stmcallister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 That was my bad. Thank you for cleaning that up!

@stmcallister stmcallister merged commit cf39fc6 into PagerDuty:master Oct 19, 2021
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