소스 검색

fix version marshalling

reid 2 년 전
부모
커밋
75094fba93
1개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 8
      docker/docker.go

+ 0 - 8
docker/docker.go

@@ -258,14 +258,6 @@ func GetLatestContainerInfo(containerType string) (map[string]string, error) {
 	if err != nil {
 		return res, err
 	}
-	groundseg, ok := m["groundseg"].(map[string]interface{})
-	if !ok {
-		return nil, fmt.Errorf("groundseg is not a map")
-	}
-	channel, ok := groundseg[releaseChannel].(map[string]interface{})
-	if !ok {
-		return nil, fmt.Errorf("%s is not a map", releaseChannel)
-	}
 	containerData, ok := channel[containerType].(map[string]interface{})
 	if !ok {
 		return nil, fmt.Errorf("%s data is not a map", containerType)