reid 2 жил өмнө
parent
commit
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