Pārlūkot izejas kodu

fix ccm parsing commas

Chris Bannister 10 gadi atpakaļ
vecāks
revīzija
0ff057806d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      ccm_test/ccm.go

+ 1 - 1
ccm_test/ccm.go

@@ -108,7 +108,7 @@ func Status() (map[string]Host, error) {
 			state = stateCommas
 		case stateCommas:
 			text := sc.Text()
-			if strings.HasPrefix(text, "-") {
+			if !strings.HasPrefix(text, "-") {
 				return nil, fmt.Errorf("expected commas got %q", text)
 			}
 			state = stateNode