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

Tags are not applied #90

Open
unkls opened this issue Nov 17, 2020 · 2 comments
Open

Tags are not applied #90

unkls opened this issue Nov 17, 2020 · 2 comments

Comments

@unkls
Copy link

unkls commented Nov 17, 2020

Hello ,

First, thanks a lot for the provider !

I'm using this provider as a module I don't know if it's change something. But I've noticed that I can add or update tags on ressources created by this provider.
Here my code :

# In the source here is the code

"test"= { host = "1.2.3.4",integrationids = [],name = "test",notifyagainevery = "0",notifywhenbackup = "true",probefilters = "region:EU",resolution = "1",responsetime_threshold = "30000",sendnotificationwhendown = "6",paused = false ,tags = "test",type = "ping",userids = []}

# and in the module I use it as : 
resource "pingdom_check" "pingdom_check" {
...
    tags = var.tags
...
}
and tag variable is declare as string.

Each time I do terraform plan it show me that changes but when I do terraform apply the tages are not created in pingdom UI and they are still visible if I make a terraform plan again.

Do you have an idea ? Is there someting I make wrong ?

Thanks a lot in advance !

@unkls
Copy link
Author

unkls commented Nov 17, 2020

I can see

2020/11/17 10:32:11 [WARN] Provider "registry.terraform.io/russellcardullo/pingdom" produced an unexpected new value for module.tf-module-pingdom-ping["MTA VIP test benjamin"].pingdom_check.pingdom_check, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .tags: was cty.StringVal("testben"), but now cty.StringVal("")

when I enable trace logs on terraform

@unkls
Copy link
Author

unkls commented Jan 22, 2021

I've raise the PR to fix it inside : https://github.com/russellcardullo/go-pingdom waiting to merge it

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

1 participant