ソースを参照

fix ccm parsing commas

Chris Bannister 10 年 前
コミット
0ff057806d
1 ファイル変更1 行追加1 行削除
  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