Explorar o código

fix cont state

reid %!s(int64=2) %!d(string=hai) anos
pai
achega
5b1de0483a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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