-
Notifications
You must be signed in to change notification settings - Fork 42
Description
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 }