Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1498 from endocode/kayrus/fix_tab_split
Browse files Browse the repository at this point in the history
tests: fixed multiple sequenced tabs recognition
  • Loading branch information
tixxdz committed Mar 14, 2016
2 parents 83c4099 + addb717 commit 8e1dd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functional/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ type UnitState struct {

func ParseUnitStates(units []string) (states []UnitState) {
for _, unit := range units {
cols := strings.SplitN(unit, "\t", 3)
cols := strings.Fields(unit)
if len(cols) == 3 {
machine := strings.SplitN(cols[2], "/", 2)[0]
states = append(states, UnitState{cols[0], cols[1], machine})
Expand Down

0 comments on commit 8e1dd44

Please sign in to comment.