Skip to content

Commit

Permalink
Fix resource leak check in case of run that cleans up after failed one
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarek committed Aug 16, 2016
1 parent 5962874 commit 5e421cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@ func DiffResources(before, clusterUp, after, location string) {
if len(lines) < 3 { // Ignore the +++ and --- header lines
return
}
lines = lines[2:]

var added []string
for _, l := range lines {
if strings.HasPrefix(l, "+") {
if strings.HasPrefix(l, "+") && len(strings.TrimPrefix(l, "+")) > 0 {
added = append(added, l)
}
}
Expand Down

0 comments on commit 5e421cc

Please sign in to comment.