Hi all! Is this really a bug or am I missing somet...
# general
l
Hi all! Is this really a bug or am I missing something obvious: https://github.com/pulumi/pulumi-opsgenie/issues/17 ?
b
if I'm reading this correctly, you get the same issue with the upstream terraform provider?
l
nope,
terraform plan
succeeds as shown there
have I misformatted the description? Is it hard to read?
b
ah sorry yes, the
Actual
at the end threw me off
can you run an
apply
with terraform ? A plan won't actually call the API so it's not clear if this is coming from our provider or the opsgenie API
l
it's not coming from the API, because the API key is invalid
(it behaves the same way when using a proper API key)
@billowy-army-68599 is it possible to enable generation some kind of a stack trace showing where in the code does this error get returned?
b
That’s sorta what you’re seeing, it’s coming from the provider binary. I’m not entirely sure what the issue is though
l
can we make the provider binary panic on trying to return that error so that we get a traceback?
b
@little-whale-73288 I'm a bit confused, I don't actually see "StartDay" and "EndDay" as options in the SDK? https://github.com/pulumi/pulumi-opsgenie/blob/master/sdk/nodejs/scheduleRotation.ts
your plan in tf isn't failing because tf doesn't validate unknown fields during a plan (I think)
@billowy-army-68599 does that mean that
monday
is a wrong value for these fields?
b
ah got it, was looking in the wrong place 🤦
that input is just taking a string, so there's no type validation on there
l
@billowy-army-68599 tf does validate it, I have changed one line and:
Copy code
filip@FZYZNIEWT15G:~/tmp/wtf/pulumi-opsgenie-schedule-rotation/terraform$ grep mondayx <http://main.tf|main.tf>
      end_day    = "mondayx"
filip@FZYZNIEWT15G:~/tmp/wtf/pulumi-opsgenie-schedule-rotation/terraform$ terraform plan

Error: it can only be day of week (monday,tuesday...)

  on <http://main.tf|main.tf> line 14, in resource "opsgenie_schedule_rotation" "test":
  14:       end_day    = "mondayx"


filip@FZYZNIEWT15G:~/tmp/wtf/pulumi-opsgenie-schedule-rotation/terraform$
b
hmm definitely a bug then, we'll try get someone to take a look
l
@billowy-army-68599 thanks! Should I make a note somehow that we are a paying customer?
b
if you send an email to support@pulumi.com with your issue number we'll get it triaged, that'll include your subscription and we'll prioritize accordingly
l
ack, thanks again!