signalfx / signalfx-go

Go client library and instrumentation bindings for SignalFx
https://www.signalfx.com
Apache License 2.0
14 stars 51 forks source link

fix organization model struct #196

Closed bodepd closed 1 year ago

bodepd commented 1 year ago

when making the following call, which returns the current organization:

result, err := s.sfxClient.GetOrganization(s.ctx, "")

It fails with the following error:

panic: json: cannot unmarshal bool into Go struct field Organization.accountRenews of type string

This patch changes the type of accountRenews to be a bool so that I can use the GetOrganization methods.

benkeith-splunk commented 1 year ago

@bodepd thanks for fixing this, not sure why it was ever set to string in the first place.