소스 검색

fix cont state

reid 2 년 전
부모
커밋
5b1de0483a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      config/config.go

+ 2 - 2
config/config.go

@@ -120,11 +120,11 @@ func UpdateConf(values map[string]interface{}) error {
 func UpdateContainerState(name string, containerState structs.ContainerState) {
 	contMutex.Lock()
 	defer contMutex.Unlock()
-	GSContainers[name] = state
+	GSContainers[name] = containerState
 }
 
 // get the current container state
-func GetContainerState() structs.SysConfig {
+func GetContainerState() structs.ContainerState {
 	contMutex.Lock()
 	defer contMutex.Unlock()
 	return GSContainers