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

Issue with pagerduty_schedule and rotation_virtual_start #4

Closed
hashibot opened this issue Jun 13, 2017 · 1 comment
Closed

Issue with pagerduty_schedule and rotation_virtual_start #4

hashibot opened this issue Jun 13, 2017 · 1 comment
Labels

Comments

@hashibot
Copy link

This issue was originally opened by @michaelcurran as hashicorp/terraform#11424. It was migrated here as part of the provider split. The original body of the issue is below.


Hi there,

I am trying to use pagerduty_schedule to set a weekly rotation and rotation_virtual_start to set a specific handoff time within the schedule.

Terraform Version

Terraform v0.8.4

Affected Resource(s)

  • pagerduty_schedule

Terraform Configuration Files

resource "pagerduty_schedule" "something" {
  name      = "something"
  time_zone = "America/New_York"

  layer {
    name                         = "Layer 1"
    start                        = "2017-01-20T04:00:00-05:00"
    rotation_virtual_start       = "2017-01-20T16:00:00-05:00"
    rotation_turn_length_seconds = 604800

    users = [
      "${data.pagerduty_user.some_user.id}",
    ]
  }
}

Expected Behavior

Using rotation_virtual_start you should be able to adjust the schedule handoff time, and it should remain set to the specified time.

Actual Behavior

Once rotation_virtual_start has been set future changes to it are not detected during plans, and additional changes to the pagerduty_schedule resource, such as adding or removing users, cause the handoff time to change even though rotation_virtual_start has not been updated. I've noticed the change seems to decrease by 5 hours on each apply.

Steps to Reproduce

For rotation_virtual_start changes not being detected:

  1. Create a pagerduty_schedule resource
  2. terraform apply
  3. Update rotation_virtual_start
  4. terraform plan

For the handoff time being updated when not updating rotation_virtual_start:

  1. Create a pagerduty_schedule resource
  2. terraform apply
  3. Check the schedule in PagerDuty
  4. Add a user to the pagerduty_schedule resource (or add it directly within PagerDuty)
  5. terraform apply (the handoff time for the schedule in PagerDuty should have changed)
@hashibot hashibot added the bug label Jun 13, 2017
@heimweh
Copy link
Collaborator

heimweh commented Jul 3, 2017

Closing this since this should be resolved with the changes in #1.

@heimweh heimweh closed this as completed Jul 3, 2017
mLupine pushed a commit to mLupine/terraform-provider-pagerdutync that referenced this issue Dec 13, 2020
imjaroiswebdev pushed a commit to imjaroiswebdev/terraform-provider-pagerduty that referenced this issue Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants