Skip to content

Commit

Permalink
strings.fields
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Feb 6, 2020
1 parent 717ba13 commit e94b152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analyze/node_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func compareNodeResourceConditionalToActual(conditional string, matchingNodes []
return true, nil
}

parts := strings.Split(strings.TrimSpace(conditional), " ")
parts := strings.Fields(strings.TrimSpace(conditional))

if len(parts) == 2 {
parts = append([]string{"count"}, parts...)
Expand Down

0 comments on commit e94b152

Please sign in to comment.