Skip to content

nilreference in AWS response at handle_deployment_failure #199

@gbg6653

Description

@gbg6653

We've encountered this issue in our system test:
/home/jenkins/jobs/workspace/cd-system-test/cloud-database-api/vendor/bundle/ruby/2.2.0/bundler/gems/moonshot-ab988dd32eea/lib/moonshot/deployment_mechanism/code_deploy.rb:294:in 'block (2 levels) in handle_deployment_failure': undefined method 'message' for nil:NilClass (NoMethodError)

The problem occurs right here. As you can tell from the exception, event.diagnostics was nil. I have opened an AWS support ticket, and the anwser was

you might get a nil value if there is nothing to return regarding from the lifecycle event chain

The function is present both in 1.x and 0.7.x. @askreet, @glennpratt and all Moonshot folks, let me know what you think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions