8000 When updating the `services` list in a `pagerduty_incident_workflow_trigger`, nothing happens · Issue #1024 · PagerDuty/terraform-provider-pagerduty · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
When updating the services list in a pagerduty_incident_workflow_trigger, nothing happens #1024
@jamesforwardnwboxed

Description

@jamesforwardnwboxed

PagerDuty provider version: 3.26.0

I have a pagerduty_incident_workflow_trigger that looks like the following:

resource "pagerduty_incident_workflow_trigger" "my_auto_trigger" {

  type = "conditional"
  workflow = pagerduty_incident_workflow.my_workflow["normal"].id

  subscribed_to_all_services = false

  services = sort([for service_name in local.my_services : data.pagerduty_service.my_services[service_name].id])
  
  condition = ""
}

The sort is to avoid pointless plans/updates as the list seems to change order randomly

However if I add another entry to my local.my_services , the plan correctly detects the PagerDuty service ID and shows it should be added.
However, after apply, when checking the workflow in the UI, the Conditional list is not actually updated and remains the same as before the update.

TL;DR
Adding new entries the services in pagerduty_incident_workflow_trigger does nothing.

Expected behaviour
The "Conditional trigger" is updated to include new elements added

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0