Skip to content

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