You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently upgraded to the Aug 2024 version of the library. Previously, we were using the Sep 2023 build. After upgrading we are noticing API behaviour changes.
When calling sys.go GetCertificate(name string) -- with a name that does not exist -- the code in getForEntity will return a 404 as no error (e.g. nil) and false.
However, the code now returns error and false which causes GetCertificate (and others) to return the error instead of nil.
Current Version in bigip.go resp, err := b.APICall(req) if err != nil { var reqError RequestError json.Unmarshal(resp, &reqError) if reqError.Code == 404 { return err, false } return err, false }
Previous Version resp, err := b.APICall(req) if err != nil { var reqError RequestError json.Unmarshal(resp, &reqError) if reqError.Code == 404 { return nil, false } return err, false }
The text was updated successfully, but these errors were encountered:
We recently upgraded to the Aug 2024 version of the library. Previously, we were using the Sep 2023 build. After upgrading we are noticing API behaviour changes.
When calling sys.go GetCertificate(name string) -- with a name that does not exist -- the code in getForEntity will return a 404 as no error (e.g. nil) and false.
However, the code now returns error and false which causes GetCertificate (and others) to return the error instead of nil.
Current Version in bigip.go
resp, err := b.APICall(req) if err != nil { var reqError RequestError json.Unmarshal(resp, &reqError) if reqError.Code == 404 { return err, false } return err, false }
Previous Version
resp, err := b.APICall(req) if err != nil { var reqError RequestError json.Unmarshal(resp, &reqError) if reqError.Code == 404 { return nil, false } return err, false }
The text was updated successfully, but these errors were encountered: