Skip to content
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

ensure non-nil Attachment in getENIAttachmentID #915

Merged
merged 1 commit into from
Apr 17, 2020

Commits on Apr 17, 2020

  1. ensure non-nil Attachement in getENIAttachmentID

    Practice good code safety in the `EC2MetadataCache.getENIAttachmentID()`
    method by not assuming that either the `DescribeNetworkInterfacesOutput`
    struct's `NetworkInterfaces` field is not empty and that the first
    `NetworkInterface` struct that collection has a non-nil `Attachment`
    field.
    
    Fixes Issue aws#914 however note that with aws#909, the source code changed
    dramatically and this patch will need to be written differently for
    v1.5.x branches.
    jaypipes committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    a139509 View commit details
    Browse the repository at this point in the history