Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Contact Validation error when not passing the paused flag #111

Open
rogerioefonseca opened this issue Oct 14, 2022 · 3 comments
Open

Contact Validation error when not passing the paused flag #111

rogerioefonseca opened this issue Oct 14, 2022 · 3 comments

Comments

@rogerioefonseca
Copy link

Terraform Core Version
1.3.2

Pngdom-provider Version
1.1.3

Affected Resource(s)
pingdom_contact

Expected Behavior
When running apply, it would need to create the contacts pingdom_contact with both LOW and HIGH severity.

Actual Behavior
When running plan, it shows that it will create a contact with both LOW and HIGH severity but in the apply, it triggers an error complaining about that.

Relevant Error/Panic Output Snippet

pingdom_contact.second_contact: Creating...
╷
│ Error: You must provide both a high and low severity notification method
│
│   with pingdom_contact.second_contact,
│   on main.tf line 26, in resource "pingdom_contact" "second_contact":
│   26: resource "pingdom_contact" "second_contact" {
│
╵

Steps to Reproduce
Copy the example code:

resource "pingdom_contact" "second_contact" {
  name   = "janedoe"
  paused = true

  email_notification {
    address  = "test@test.com"
    severity = "LOW"
  }

  email_notification {
    address  = "test@test.com"
    severity = "HIGH"
  }
}

Run teraform apply tf apply --target=pingdom_contact.second_contact

Would you like to implement a fix?
I would like to implement a fix, but I will wait for interactions and then see if it makes sense to contribute.

@cgroschupp
Copy link

this is already fixed in this commit: b1b6487

so wait for a new release.

@rogerioefonseca
Copy link
Author

This repo does not look to be maintained anymore.
We might need to fork and maintain it.

@rogerioefonseca
Copy link
Author

This repo does not look to be maintained anymore. We might need to fork and maintain it.

Anyways, this is still open and needs to be included in a new release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants