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

Error: Failed to Read Notification #47

Open
MujahidRashid opened this issue Feb 12, 2021 · 0 comments
Open

Error: Failed to Read Notification #47

MujahidRashid opened this issue Feb 12, 2021 · 0 comments

Comments

@MujahidRashid
Copy link

MujahidRashid commented Feb 12, 2021

Hi
After creating a new notification resource

resource "icinga2_notification" "project-stage-website" {
  hostname = "project-stage-website"
  command  = "slack-host-notification"
  users    = ["slack"]
}

the terraform state shows the following

{
  "version": 4,
  "terraform_version": "0.14.6",
  "serial": 4,
  "lineage": "dc265d13-d932-889a-4ab9-0f11cf99fb23",
  "outputs": {},
  "resources": [
    {
      "mode": "managed",
      "type": "icinga2_notification",
      "name": "project-stage-website",
      "provider": "provider[\"registry.terraform.io/icinga/icinga2\"]",
      "instances": [
        {
          "schema_version": 0,
          "attributes": {
            "command": "slack-host-notification",
            "hostname": "project-stage-website",
            "id": "project-stage-website!project-stage-website",
            "interval": 1800,
            "servicename": "",
            "templates": null,
            "users": [
              "slack"
            ],
            "vars": {}
          },
          "sensitive_attributes": [],
          "private": "bnVsbA=="
        }
      ]
    }
  ]
}

rerunning any changes after that gives the following error
Error: Failed to Read Notification project-stage-website! : %!s()

The id field seems weird

Terraform v0.14.6
+ provider registry.terraform.io/icinga/icinga2 v0.5.0-pre
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

No branches or pull requests

1 participant