Skip to content

Conversation

haugenj
Copy link
Contributor

@haugenj haugenj commented Mar 1, 2021

Issue #367, if available:

Description of changes:
If no instances are returned from the describe instances call then there's no work to do, so we'll return a ErrNodeStateNotRunning error. This gets handled in the Monitor function - it'll delete the message and avoid the panic.

With this we can also remove the if nodeName == "" { check in asg-lifecycle-event because we never actually run that. There's always a nodename by that point or we'll have already returned an error.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@haugenj haugenj requested a review from bwagner5 March 1, 2021 18:21
Copy link
Contributor

@bwagner5 bwagner5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants