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

ignore 'unknown' state of stalled resources #717

Closed
wants to merge 1 commit into from

Conversation

funkymcb
Copy link

This would be my idea of fixing issue #715.

Signed-off-by: Yannick Peter <yannick.peter@empiriecom.com>
Comment on lines +142 to +146
if strings.ToLower(lastStatus[id].Status.String()) != "unknown" {
// ignore status 'unknown' to only list failed resources
builder.WriteString(fmt.Sprintf("%s status: '%s'",
utils.FmtObjMetadata(rs.Identifier), lastStatus[id].Status))
}
Copy link
Member

Choose a reason for hiding this comment

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

This needs to happen only if there are failed resources, otherwise you would not know which resources have timed out and the error will come back empty.

@stefanprodan
Copy link
Member

Superseded by #722

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