Skip to content

The private getForEntity function behavior has changed. #104

Description

@ToDMSmith

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 }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions