Explorar el Código

fix ccm parsing commas

Chris Bannister hace 10 años
padre
commit
0ff057806d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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