-
Notifications
You must be signed in to change notification settings - Fork 65
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
Policy/request.go has faulty DelayAction struct. #29
Comments
any update on this ? |
It seems someone did a PR which would solve this: #40 |
We have released v1.1.1 for this fix. Thanks. |
rudo-thomas
added a commit
to rudo-thomas/terraform-provider-opsgenie
that referenced
this issue
Nov 30, 2020
…policy.delay_action. The referenced issue opsgenie/opsgenie-go-sdk-v2#29 has been fixed.
rudo-thomas
added a commit
to rudo-thomas/terraform-provider-opsgenie
that referenced
this issue
Nov 30, 2020
…ay_action. The referenced issue opsgenie/opsgenie-go-sdk-v2#29 has been fixed.
rudo-thomas
added a commit
to rudo-thomas/terraform-provider-opsgenie
that referenced
this issue
Nov 30, 2020
…ay_action. The referenced issue opsgenie/opsgenie-go-sdk-v2#29 has been fixed.
rudo-thomas
added a commit
to rudo-thomas/terraform-provider-opsgenie
that referenced
this issue
Mar 9, 2021
…ay_action. The referenced issue opsgenie/opsgenie-go-sdk-v2#29 has been fixed.
arjunrajpal
pushed a commit
to opsgenie/terraform-provider-opsgenie
that referenced
this issue
Jun 12, 2023
…ay_action. The referenced issue opsgenie/opsgenie-go-sdk-v2#29 has been fixed.
frknyldz
pushed a commit
to opsgenie/terraform-provider-opsgenie
that referenced
this issue
Jun 12, 2023
…ay_action. (#379) The referenced issue opsgenie/opsgenie-go-sdk-v2#29 has been fixed. Co-authored-by: Rudolf Thomas <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here:
opsgenie-go-sdk-v2/policy/request.go
Line 550 in d4ed1a6
is a bug, following struct is configured:
Problem is that if UntilMinute and / or UntilHour is 0 then argument is omitted as it's seen as empty (which in this case is not the case).
Due to this issue it's not possible to set any of those to 0.
According to: https://www.sohamkamani.com/blog/golang/2018-07-19-golang-omitempty/
Solution would be to switch field to:
So, struct would look like that:
The text was updated successfully, but these errors were encountered: